Skip to content

Commit

Permalink
function fetchFiles is not used in memo anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed Dec 3, 2024
1 parent 3342913 commit b6a6033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/browser/FileSelectDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const FileSelectDialog = forwardRef((props: any, forwardedRef)=> {
}
}

const fetchFiles = useCallback(async () => {
async function fetchFiles() {
const fetchUrl = (() => {
const params = new URLSearchParams();
if (structure.recursive) {
Expand All @@ -213,7 +213,7 @@ const FileSelectDialog = forwardRef((props: any, forwardedRef)=> {
} else {
console.error(response);
}
}, [structure.last_folder, structure.recursive, structure.search_query, structure.offset]);
}

function handleUpload(folderId, uploadedFiles){
if (structure.last_folder !== folderId)
Expand Down

0 comments on commit b6a6033

Please sign in to comment.