소스 검색

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

Björn Alm 3 년 전
부모
커밋
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();
       }
     });