Pārlūkot izejas kodu

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

Johan Ahlen 5 gadi atpakaļ
vecāks
revīzija
08ea596d88

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