File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
apps/sim/app/workspace/[workspaceId]/w/[workflowId] Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,8 @@ const WorkflowContent = React.memo(() => {
401401
402402 const hasBlocks = useMemo ( ( ) => Object . keys ( blocks ) . length > 0 , [ blocks ] )
403403
404+ const hasLockedBlocks = useMemo ( ( ) => Object . values ( blocks ) . some ( ( b ) => b . locked ) , [ blocks ] )
405+
404406 const isWorkflowReady = useMemo (
405407 ( ) =>
406408 hydration . phase === 'ready' &&
@@ -3792,7 +3794,7 @@ const WorkflowContent = React.memo(() => {
37923794 disableEdit = { ! effectivePermissions . canEdit }
37933795 canUndo = { canUndo }
37943796 canRedo = { canRedo }
3795- hasLockedBlocks = { Object . values ( blocks ) . some ( ( b ) => b . locked ) }
3797+ hasLockedBlocks = { hasLockedBlocks }
37963798 onToggleWorkflowLock = { handleToggleWorkflowLock }
37973799 allBlocksLocked = { allBlocksLocked }
37983800 canAdmin = { effectivePermissions . canAdmin }
You can’t perform that action at this time.
0 commit comments