Commit a9a23dd3a1c0fcbc4eee53b5c1fe3e29d2f7c7da
1 parent
3959cc59
fix: add chart component change style will error
Showing
1 changed file
with
3 additions
and
0 deletions
... | ... | @@ -369,6 +369,9 @@ |
369 | 369 | const chartsDomList = document.querySelectorAll(`.${ enumConst.CHART_CONTAINER_CLS }`) |
370 | 370 | for (const chartDom of chartsDomList) { |
371 | 371 | const id = chartDom.getAttribute('id') |
372 | + if (!domIdMapping.has(id)) { | |
373 | + continue | |
374 | + } | |
372 | 375 | const { width, height, chartType } = domIdMapping.get(id) |
373 | 376 | Sidebar.prototype.generatorEChartInstance(id, width, height, chartType) |
374 | 377 | } | ... | ... |