Skip to content

Commit 055da4a

Browse files
committed
fix type issue
1 parent beed8c3 commit 055da4a

File tree

1 file changed

+5
-6
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/control-bar

1 file changed

+5
-6
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/control-bar/control-bar.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,11 @@ export function ControlBar({ hasValidationErrors = false }: ControlBarProps) {
7878

7979
// Store hooks
8080
const { lastSaved, setNeedsRedeploymentFlag, blocks } = useWorkflowStore()
81-
const {
82-
workflows,
83-
activeWorkflowId,
84-
duplicateWorkflow,
85-
isLoading: isRegistryLoading,
86-
} = useWorkflowRegistry()
81+
const { workflows, activeWorkflowId, duplicateWorkflow, hydration } = useWorkflowRegistry()
82+
const isRegistryLoading =
83+
hydration.phase === 'idle' ||
84+
hydration.phase === 'metadata-loading' ||
85+
hydration.phase === 'state-loading'
8786
const { isExecuting, handleRunWorkflow, handleCancelExecution } = useWorkflowExecution()
8887
const { setActiveTab, togglePanel, isOpen } = usePanelStore()
8988
const { getFolderTree, expandedFolders } = useFolderStore()

0 commit comments

Comments
 (0)