Skip to content
Snippets Groups Projects
Unverified Commit 36af69b4 authored by Timothy Carambat's avatar Timothy Carambat Committed by GitHub
Browse files

Patch `DNDFilePicker` useEffect callback (#2506)

parent 7342839e
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ export function DnDFileUploaderProvider({ workspace, children }) { ...@@ -30,7 +30,7 @@ export function DnDFileUploaderProvider({ workspace, children }) {
const { user } = useUser(); const { user } = useUser();
useEffect(() => { useEffect(() => {
if (!!user && user.role === "default") return false; if (!!user && user.role === "default") return;
System.checkDocumentProcessorOnline().then((status) => setReady(status)); System.checkDocumentProcessorOnline().then((status) => setReady(status));
}, [user]); }, [user]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment