Skip to content

Commit 3db31a4

Browse files
chore: fix review changes
1 parent 476e6aa commit 3db31a4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-actions/workflow-actions.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import { useDeleteWorkflow } from '@/app/workspace/[workspaceId]/w/hooks'
3434
import { useDuplicateWorkflowMutation, useWorkflowMap } from '@/hooks/queries/workflows'
3535
import { useCollaborativeWorkflow } from '@/hooks/use-collaborative-workflow'
3636
import { useNotificationStore } from '@/stores/notifications/store'
37-
import { useVariablesStore as usePanelVariablesStore } from '@/stores/panel'
3837
import { useVariablesStore } from '@/stores/variables/store'
3938
import { getWorkflowWithValues } from '@/stores/workflows'
4039
import { 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, {

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-toolbar/workflow-toolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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'>

0 commit comments

Comments
 (0)