瀏覽代碼

[frontend] use executable.id to compare executables in charts of editor v2

Björn Alm 2 年之前
父節點
當前提交
2d261b8a53
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/js/apps/editor/components/resultChart/ko.resultChart.js

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/components/resultChart/ko.resultChart.js

@@ -584,7 +584,7 @@ class ResultChart extends DisposableComponent {
     };
 
     this.subscribe(EXECUTABLE_RESULT_UPDATED_TOPIC, executionResult => {
-      if (this.activeExecutable() === executionResult.executable) {
+      if (this.activeExecutable()?.id === executionResult?.executable?.id) {
         handleResultChange();
       }
     });