File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ import { useDeleteWorkflow } from '@/app/workspace/[workspaceId]/w/hooks'
3434import { useDuplicateWorkflowMutation , useWorkflowMap } from '@/hooks/queries/workflows'
3535import { useCollaborativeWorkflow } from '@/hooks/use-collaborative-workflow'
3636import { useNotificationStore } from '@/stores/notifications/store'
37- import { useVariablesStore as usePanelVariablesStore } from '@/stores/panel'
3837import { useVariablesStore } from '@/stores/variables/store'
3938import { getWorkflowWithValues } from '@/stores/workflows'
4039import { useWorkflowRegistry } from '@/stores/workflows/registry/store'
@@ -140,7 +139,7 @@ export const WorkflowActions = memo(function WorkflowActions({
140139 try {
141140 const workflow = getWorkflowWithValues ( activeWorkflowId , workspaceId )
142141 if ( ! workflow || ! workflow . state ) throw new Error ( 'No workflow state found' )
143- const workflowVariables = usePanelVariablesStore
142+ const workflowVariables = useVariablesStore
144143 . getState ( )
145144 . getVariablesByWorkflowId ( activeWorkflowId )
146145 const jsonContent = generateWorkflowJson ( workflow . state , {
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export const WorkflowToolbar = memo(function WorkflowToolbar({
6161
6262 const canRun = userPermissions . canRead
6363 const isLoadingPermissions = userPermissions . isLoading
64- const isButtonDisabled = ! isExecuting && ( isExecuting || ( ! canRun && ! isLoadingPermissions ) )
64+ const isButtonDisabled = ! isExecuting && ( ! canRun && ! isLoadingPermissions )
6565
6666 return (
6767 < div className = 'absolute top-4 right-4 z-10 flex h-[36px] items-center gap-1 rounded-lg border border-[var(--border)] bg-[var(--surface-1)] p-1' >
You can’t perform that action at this time.
0 commit comments