diff --git a/frontend/app/store/global.ts b/frontend/app/store/global.ts index 64ad94489..e90b9188a 100644 --- a/frontend/app/store/global.ts +++ b/frontend/app/store/global.ts @@ -275,11 +275,7 @@ function handleWSEventMessage(msg: WSEventType) { case LayoutTreeActionType.DeleteNode: { const leaf = layoutModel?.getNodeByBlockId(layoutAction.blockid); if (leaf) { - const deleteNodeAction = { - type: LayoutTreeActionType.DeleteNode, - nodeId: leaf.id, - }; - layoutModel.treeReducer(deleteNodeAction); + layoutModel.closeNode(leaf); } else { console.error( "Cannot apply eventbus layout action DeleteNode, could not find leaf node with blockId",