From 283463d6f94416bf7162e999d348a0c4a492f304 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Thu, 9 Jan 2025 14:26:46 +0530 Subject: [PATCH] fix: Only show delete option for visible blocks --- frontend/src/components/BlockContextMenu.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/BlockContextMenu.vue b/frontend/src/components/BlockContextMenu.vue index 779831a4..270dd0a8 100644 --- a/frontend/src/components/BlockContextMenu.vue +++ b/frontend/src/components/BlockContextMenu.vue @@ -236,6 +236,7 @@ const contextMenuOptions: ContextMenuOption[] = [ return ( !block.value.isRoot() && !block.value.isChildOfComponentBlock() && + block.value.isVisible() && Boolean(block.value.getParentBlock()) ); },