Skip to content

Commit

Permalink
Merge pull request #1098 from ChainSafe/hotfix/create-new-user-file-s…
Browse files Browse the repository at this point in the history
…ystem

create buckets for new users
  • Loading branch information
FSM1 authored Jun 7, 2021
2 parents 530b582 + eb98743 commit f4b1bb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/files-ui/src/Contexts/FilesContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => ({
Expand Down

0 comments on commit f4b1bb3

Please sign in to comment.