Skip to content

Commit 6f98911

Browse files
waleedlatif1claude
andcommitted
fix(lock): use disableEdit for duplicate in block menu
Changed duplicate menu item to use disableEdit (which includes lock check) instead of !userCanEdit for consistency with action bar and other edit operations. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1bb3a71 commit 6f98911

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/block-menu

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/block-menu/block-menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export function BlockMenu({
175175
</PopoverItem>
176176
{!hasSingletonBlock && (
177177
<PopoverItem
178-
disabled={!userCanEdit}
178+
disabled={disableEdit}
179179
onClick={() => {
180180
onDuplicate()
181181
onClose()

0 commit comments

Comments
 (0)