Просмотр исходного кода

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

Björn Alm 2 лет назад
Родитель
Сommit
2d261b8a53

+ 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();
       }
     });