Commit 9e4d934aa0ac07bbbdb6ab52aac96e3377a614b6

Authored by ww
1 parent ccdb9c0a

fix: 修复build报错

... ... @@ -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)
... ...