Skip to content

Commit ba03206

Browse files
committed
fix(sidebar): guard add-workflow shortcut with canEdit and isCreatingWorkflow checks
1 parent 3fad92b commit ba03206

File tree

1 file changed

+1
-0
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/components/sidebar

1 file changed

+1
-0
lines changed

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/sidebar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,7 @@ export const Sidebar = memo(function Sidebar() {
11691169
{
11701170
id: 'add-workflow',
11711171
handler: () => {
1172+
if (!canEdit || isCreatingWorkflow) return
11721173
handleCreateWorkflow()
11731174
},
11741175
},

0 commit comments

Comments
 (0)