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();
|
||||
|
||||
useEffect(() => {
|
||||
if (!!user && user.role === "default") return false;
|
||||
if (!!user && user.role === "default") return;
|
||||
System.checkDocumentProcessorOnline().then((status) => setReady(status));
|
||||
}, [user]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user