Skip to content

Commit 0263897

Browse files
committed
lint
1 parent af3e12d commit 0263897

File tree

1 file changed

+3
-3
lines changed
  • apps/sim/stores/workflows/registry

1 file changed

+3
-3
lines changed

apps/sim/stores/workflows/registry/store.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { create } from 'zustand'
33
import { devtools } from 'zustand/middleware'
44
import { DEFAULT_DUPLICATE_OFFSET } from '@/lib/workflows/autolayout/constants'
55
import { getQueryClient } from '@/app/_shell/providers/get-query-client'
6+
import type { WorkflowDeploymentInfo } from '@/hooks/queries/deployments'
7+
import { deploymentKeys } from '@/hooks/queries/deployments'
68
import { invalidateWorkflowLists } from '@/hooks/queries/utils/invalidate-workflow-lists'
79
import { useVariablesStore } from '@/stores/panel/variables/store'
810
import type { Variable } from '@/stores/panel/variables/types'
9-
import type { WorkflowDeploymentInfo } from '@/hooks/queries/deployments'
10-
import { deploymentKeys } from '@/hooks/queries/deployments'
1111
import type { HydrationState, WorkflowRegistry } from '@/stores/workflows/registry/types'
1212
import { useSubBlockStore } from '@/stores/workflows/subblock/store'
1313
import { getUniqueBlockName, regenerateBlockIds } from '@/stores/workflows/utils'
@@ -104,7 +104,7 @@ export const useWorkflowRegistry = create<WorkflowRegistry>()(
104104
(prev) => ({
105105
isDeployed: workflowData.isDeployed ?? false,
106106
deployedAt: workflowData.deployedAt ?? null,
107-
apiKey: prev?.apiKey ?? null,
107+
apiKey: workflowData.apiKey ?? prev?.apiKey ?? null,
108108
needsRedeployment: prev?.needsRedeployment ?? false,
109109
isPublicApi: prev?.isPublicApi ?? false,
110110
})

0 commit comments

Comments
 (0)