瀏覽代碼

fix initial echart update

Falko Schindler 1 年之前
父節點
當前提交
1f94f24de5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nicegui/elements/echart.js

+ 1 - 1
nicegui/elements/echart.js

@@ -17,7 +17,7 @@ export default {
   methods: {
     update_chart() {
       convertDynamicProperties(this.options, true);
-      this.chart.setOption(this.options, { notMerge: this.chart.options.series.length != this.options.series.length });
+      this.chart.setOption(this.options, { notMerge: this.chart.options?.series.length != this.options.series.length });
     },
   },
   props: {