From 721b95034a206828314d10f70adab3a2717e26dd Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 5 May 2023 10:10:39 +0200 Subject: [PATCH] wait #5916 @0:20 --- resources/linkeditor/js/linkeditor.links.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/linkeditor/js/linkeditor.links.js b/resources/linkeditor/js/linkeditor.links.js index 7c86b7bbe..eb4af1096 100644 --- a/resources/linkeditor/js/linkeditor.links.js +++ b/resources/linkeditor/js/linkeditor.links.js @@ -1009,7 +1009,7 @@ LinkeditorLinks.prototype = { var $this = this; $("#linkeditor-links .link").each(function () { let calcDepth = parseInt($(this).attr('fb-zindex')); - if (calcDepth === -1) { + if (isNaN(calcDepth) || calcDepth === -1) { calcDepth = $this.findDefaultLinkDepth($(this)); } let linkWidth = parseFloat($(this).attr('fb-width')); -- 2.39.5