mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
This commit is contained in:
1 parent
1e8b42b8a5
commit
51ec11d3c8
2 files changed
+3
-2
No files matched your search
@@ -67,7 +67,7 @@ const StorageLayout: FC<Props> = ({ title, children }) => {
|
||||
|
||||
const onSelectCreateBucket = async (bucketName: string, isPublic: boolean) => {
|
||||
const bucket = await createBucket(bucketName, isPublic)
|
||||
if (bucket.name) router.push(`/project/${ref}/storage/buckets/${bucket.name}`)
|
||||
if (bucket !== undefined) router.push(`/project/${ref}/storage/buckets/${bucket.name}`)
|
||||
}
|
||||
|
||||
const onSelectDeleteBucket = async (bucket: any) => {
|
||||
|
||||
@@ -466,7 +466,8 @@ class StorageExplorerStore {
|
||||
message: error.message,
|
||||
category: 'error',
|
||||
})
|
||||
return this.closeCreateBucketModal()
|
||||
this.closeCreateBucketModal()
|
||||
return undefined
|
||||
}
|
||||
|
||||
await this.fetchBuckets()
|
||||
|
||||
Reference in new issue
Block a user