zhongzewei 6 rokov pred
rodič
commit
24319a319e
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      web/building_saas/pm/js/pm_newMain.js

+ 1 - 1
web/building_saas/pm/js/pm_newMain.js

@@ -798,7 +798,7 @@ const projTreeObj = {
             x = x + (node.depth() + 1) * indent +  node.depth() * levelIndent + imgWidth + 3;
             w = w - (node.depth() + 1) * indent - node.depth() * levelIndent - imgWidth - 3;
             GC.Spread.Sheets.CellTypes.Text.prototype.paint.apply(this, arguments);
-            if (node.data.shareInfo.length > 0) {
+            if (node.data.shareInfo && node.data.shareInfo.length > 0) {
                 let nowX = Math.floor(x) + w - 20;
                 let nowY = Math.floor((y + (y + h)) / 2);
                 ctx.drawImage(shareImg, nowX + 3, nowY - 7, shareImgWidth,shareImgHeight);