Преглед на файлове

HUE-9456 [editor] Make sure executable ID doesn't change after loading from history in editor v2

Johan Ahlen преди 5 години
родител
ревизия
08ea596d88
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      desktop/core/src/desktop/js/apps/notebook2/execution/sqlExecutable.ts

+ 1 - 0
desktop/core/src/desktop/js/apps/notebook2/execution/sqlExecutable.ts

@@ -111,6 +111,7 @@ export default class SqlExecutable extends Executable {
 
   toJson(): string {
     return JSON.stringify({
+      id: this.id,
       statement: this.getStatement(),
       database: this.database
     });