mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix(dep): dependency for useEffect missing
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user