Skip to content

Commit

Permalink
fix: additionally start knowledge polling when source is pending
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhopperlowe committed Dec 20, 2024
1 parent fa7372d commit 2c8ed15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/admin/app/hooks/knowledge/useKnowledgeSourceFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export function useKnowledgeSourceFiles(
if (blockPollingFiles) setBlockPollingFiles(false);
};

if (knowledgeSource.state === KnowledgeSourceStatus.Syncing) {
if (
knowledgeSource.state === KnowledgeSourceStatus.Syncing ||
knowledgeSource.state === KnowledgeSourceStatus.Pending
) {
startPolling();
}

Expand Down

0 comments on commit 2c8ed15

Please sign in to comment.