浏览代码

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