Skip to content

Commit

Permalink
fix: insertion markers destroying procedure models v11 (#2174)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega authored Jan 29, 2024
1 parent 2596711 commit f14666f
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 f14666f

Please sign in to comment.