Skip to content

Commit

Permalink
fix: insertion markers destroying procedure models v11
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega committed Jan 27, 2024
1 parent 041fe68 commit bf1bc99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/block-shareable-procedures/src/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,11 @@ const procedureDefGetDefMixin = function () {
* disposed.
*/
destroy: function () {
this.workspace.getProcedureMap().delete(this.getProcedureModel().getId());
if (!this.isInsertionMarker()) {
this.workspace
.getProcedureMap()
.delete(this.getProcedureModel().getId());
}
},
};

Expand Down

0 comments on commit bf1bc99

Please sign in to comment.