Skip to content

Commit b6a6033

Browse files
committed
function fetchFiles is not used in memo anymore
1 parent 3342913 commit b6a6033

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/browser/FileSelectDialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ const FileSelectDialog = forwardRef((props: any, forwardedRef)=> {
186186
}
187187
}
188188

189-
const fetchFiles = useCallback(async () => {
189+
async function fetchFiles() {
190190
const fetchUrl = (() => {
191191
const params = new URLSearchParams();
192192
if (structure.recursive) {
@@ -213,7 +213,7 @@ const FileSelectDialog = forwardRef((props: any, forwardedRef)=> {
213213
} else {
214214
console.error(response);
215215
}
216-
}, [structure.last_folder, structure.recursive, structure.search_query, structure.offset]);
216+
}
217217

218218
function handleUpload(folderId, uploadedFiles){
219219
if (structure.last_folder !== folderId)

0 commit comments

Comments
 (0)