From 86168f1a87d2bd38c7747ec611a389ad9d4da0a7 Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Mon, 30 Jun 2025 18:10:20 -0700 Subject: [PATCH] fix(dep): dependency for useEffect missing --- .../components/document-selector/document-selector.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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