Patch DNDFilePicker useEffect callback (#2506)

This commit is contained in:
Timothy Carambat 2024-10-20 10:46:18 -07:00 committed by GitHub
parent 7342839e77
commit 36af69b4a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]);