From eb98743e778b1014e42043fcb7e18efb8d66feff Mon Sep 17 00:00:00 2001 From: Michael Yankelev Date: Mon, 7 Jun 2021 16:26:33 +0200 Subject: [PATCH] create buckets for new users --- packages/files-ui/src/Contexts/FilesContext.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/files-ui/src/Contexts/FilesContext.tsx b/packages/files-ui/src/Contexts/FilesContext.tsx index 3cf2feb37a..d59a43cff8 100644 --- a/packages/files-ui/src/Contexts/FilesContext.tsx +++ b/packages/files-ui/src/Contexts/FilesContext.tsx @@ -107,6 +107,8 @@ const FilesProvider = ({ children }: FilesContextProps) => { const refreshBuckets = useCallback(async () => { if (!personalEncryptionKey) return + // TODO: Remove this once the API creates buckets for new users + await filesApiClient.getCSFChildList({ path:"/" }) const result = await filesApiClient.listBuckets() const bucketsWithKeys: Bucket[] = await Promise.all(result.map(async (b) => ({