From 36af69b4a84cf09b8a2397402d64ee58acef69dc Mon Sep 17 00:00:00 2001 From: Timothy Carambat Date: Sun, 20 Oct 2024 10:46:18 -0700 Subject: [PATCH] Patch `DNDFilePicker` useEffect callback (#2506) --- .../components/WorkspaceChat/ChatContainer/DnDWrapper/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/DnDWrapper/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/DnDWrapper/index.jsx index b79a4535a..35ec9215d 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/DnDWrapper/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/DnDWrapper/index.jsx @@ -30,7 +30,7 @@ export function DnDFileUploaderProvider({ workspace, children }) { const { user } = useUser(); useEffect(() => { - if (!!user && user.role === "default") return false; + if (!!user && user.role === "default") return; System.checkDocumentProcessorOnline().then((status) => setReady(status)); }, [user]);