Skip to content

Commit 86168f1

Browse files
Vikhyath MondretiVikhyath Mondreti
authored andcommitted
fix(dep): dependency for useEffect missing
1 parent 5d7fc53 commit 86168f1

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/document-selector

1 file changed

+1
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/document-selector/document-selector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export function DocumentSelector({
147147
if (knowledgeBaseId && !initialFetchDone && !isPreview) {
148148
fetchDocuments()
149149
}
150-
}, [knowledgeBaseId, initialFetchDone, isPreview])
150+
}, [knowledgeBaseId, initialFetchDone, isPreview, fetchDocuments])
151151

152152
const formatDocumentName = (document: DocumentData) => {
153153
return document.filename

0 commit comments

Comments
 (0)