From: Vincent Vanwaelscappel Date: Fri, 5 May 2023 08:10:39 +0000 (+0200) Subject: wait #5916 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=721b95034a206828314d10f70adab3a2717e26dd;p=fluidbook-toolbox.git wait #5916 @0:20 --- 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'));