Skip to content

Commit 55aec43

Browse files
committed
fix
1 parent 055da4a commit 55aec43

File tree

1 file changed

+5
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/copilot/components/user-input/hooks

1 file changed

+5
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/copilot/components/user-input/hooks/use-mention-data.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@ export function useMentionData(props: UseMentionDataProps) {
118118

119119
// Use workflow registry as source of truth for workflows
120120
const registryWorkflows = useWorkflowRegistry((state) => state.workflows)
121-
const isLoadingWorkflows = useWorkflowRegistry((state) => state.isLoading)
121+
const hydrationPhase = useWorkflowRegistry((state) => state.hydration.phase)
122+
const isLoadingWorkflows =
123+
hydrationPhase === 'idle' ||
124+
hydrationPhase === 'metadata-loading' ||
125+
hydrationPhase === 'state-loading'
122126

123127
// Convert registry workflows to mention format, filtered by workspace and sorted
124128
const workflows: WorkflowItem[] = Object.values(registryWorkflows)

0 commit comments

Comments
 (0)