From f14666f8f7a94314bd76fc4fea2b5e88f8ba11b1 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Mon, 29 Jan 2024 14:01:28 -0800 Subject: [PATCH] fix: insertion markers destroying procedure models v11 (#2174) --- 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()); + } }, };