Skip to content

Commit

Permalink
fix: Only show delete option for visible blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshetty3416 committed Jan 9, 2025
1 parent da25cbe commit 283463d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/BlockContextMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ const contextMenuOptions: ContextMenuOption[] = [
return (
!block.value.isRoot() &&
!block.value.isChildOfComponentBlock() &&
block.value.isVisible() &&
Boolean(block.value.getParentBlock())
);
},
Expand Down

0 comments on commit 283463d

Please sign in to comment.