We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bf09b7 commit 409c82dCopy full SHA for 409c82d
src/components/file-upload.tsx
@@ -21,15 +21,14 @@ const FileUpload = () => {
21
fetch(`/api/files${query}`, {
22
method: "POST",
23
body: data,
24
- })
+ }).then(() => fetchFiles())
25
})
26
toast({
27
description: "Files uploaded successfully!",
28
variant: "success",
29
30
setPath(null)
31
setFiles([])
32
- fetchFiles()
33
}
34
35
return (
0 commit comments