Commit 35db9ca46d9e51a9ff3ed7a9c53f2ee24ac77473
Merge branch 'fix/build-error' into 'main_dev'
fix: 修复build报错 See merge request yunteng/thingskit-scada!105
Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -352,7 +352,7 @@ | @@ -352,7 +352,7 @@ | ||
| 352 | */ | 352 | */ |
| 353 | Sidebar.prototype.initChartInstance = function (graph) { | 353 | Sidebar.prototype.initChartInstance = function (graph) { |
| 354 | const basicAttr = this.enumCellBasicAttribute | 354 | const basicAttr = this.enumCellBasicAttribute |
| 355 | - const allCell = Object.entries(graph?.getModel()?.cells || {}).map(([_, item]) => item) || [] | 355 | + const allCell = Object.entries(((graph || {}).getModel() || {}).cells || {}).map(([_, item]) => item) || [] |
| 356 | const domIdMapping = new Map() | 356 | const domIdMapping = new Map() |
| 357 | for (const cell of allCell) { | 357 | for (const cell of allCell) { |
| 358 | const chartInstanceId = graph.getAttributeForCell(cell, basicAttr.CHART_INSTANCE_ID) | 358 | const chartInstanceId = graph.getAttributeForCell(cell, basicAttr.CHART_INSTANCE_ID) |