From 3caef76ea0f92c44681cada40e367efbbfe71e52 Mon Sep 17 00:00:00 2001 From: Rizky Date: Tue, 27 Feb 2024 06:58:46 +0700 Subject: [PATCH] fix --- app/web/src/nova/ed/panel/file/file-browser.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/web/src/nova/ed/panel/file/file-browser.tsx b/app/web/src/nova/ed/panel/file/file-browser.tsx index 941f33fa..512acb58 100644 --- a/app/web/src/nova/ed/panel/file/file-browser.tsx +++ b/app/web/src/nova/ed/panel/file/file-browser.tsx @@ -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),