From bf1bc99ce55b75876bbbc9cfb1fd56c84356cc74 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Sat, 27 Jan 2024 00:05:57 +0000 Subject: [PATCH] fix: insertion markers destroying procedure models v11 --- plugins/block-shareable-procedures/src/blocks.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()); + } }, };