Showing
1 changed file
with
1 additions
and
1 deletions
| ... | ... | @@ -352,7 +352,7 @@ |
| 352 | 352 | */ |
| 353 | 353 | Sidebar.prototype.initChartInstance = function (graph) { |
| 354 | 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 | 356 | const domIdMapping = new Map() |
| 357 | 357 | for (const cell of allCell) { |
| 358 | 358 | const chartInstanceId = graph.getAttributeForCell(cell, basicAttr.CHART_INSTANCE_ID) | ... | ... |