diff --git a/plugins/block-shareable-procedures/src/blocks.ts b/plugins/block-shareable-procedures/src/blocks.ts index 8c0cbfc153..aba6d4fbe8 100644 --- a/plugins/block-shareable-procedures/src/blocks.ts +++ b/plugins/block-shareable-procedures/src/blocks.ts @@ -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()); + } }, };