diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/document-selector/document-selector.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/document-selector/document-selector.tsx index cf6fe7d2c0..390a98371f 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/document-selector/document-selector.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/document-selector/document-selector.tsx @@ -147,7 +147,7 @@ export function DocumentSelector({ if (knowledgeBaseId && !initialFetchDone && !isPreview) { fetchDocuments() } - }, [knowledgeBaseId, initialFetchDone, isPreview]) + }, [knowledgeBaseId, initialFetchDone, isPreview, fetchDocuments]) const formatDocumentName = (document: DocumentData) => { return document.filename