]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5916 @0:20
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 5 May 2023 08:10:39 +0000 (10:10 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 5 May 2023 08:10:39 +0000 (10:10 +0200)
resources/linkeditor/js/linkeditor.links.js

index 7c86b7bbe00bee1838c93664dad2192ef74b2a15..eb4af109648e2bdb104f9d1877e345faea2cecad 100644 (file)
@@ -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'));