Skip to content

Commit 901bffe

Browse files
waleedlatif1claude
andcommitted
fix(block-menu): paste should not be disabled for locked selection
Paste creates new blocks, doesn't modify selected ones. Changed from disableEdit (includes lock state) to !userCanEdit (permission only), matching the Duplicate action behavior. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7714dad commit 901bffe

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/block-menu

1 file changed

+1
-1
lines changed

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
@@ -164,7 +164,7 @@ export function BlockMenu({
164164
</PopoverItem>
165165
<PopoverItem
166166
className='group'
167-
disabled={disableEdit || !hasClipboard}
167+
disabled={!userCanEdit || !hasClipboard}
168168
onClick={() => {
169169
onPaste()
170170
onClose()

0 commit comments

Comments
 (0)