This commit is contained in:
Rizky 2024-02-27 06:58:46 +07:00
parent b3958b5a00
commit 3caef76ea0
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ export const EdFileBrowser = () => {
p.render();
}
console.log(p.site);
if (!p.script.api) return () => {};
p.script.api._raw(`/_file/?dir`).then((e: FEntry[]) => {
@ -40,7 +41,7 @@ export const EdFileBrowser = () => {
p.render();
}
});
}, []);
}, [p.site]);
const { getRootProps, getInputProps, isDragActive } = useDropzone({
onDrop: (files) => uploadFile(p, files),