mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-19 04:30:10 +01:00
Patch DNDFilePicker
useEffect callback (#2506)
This commit is contained in:
parent
7342839e77
commit
36af69b4a8
@ -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]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user