Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Smol fix files bucket (#40179)

Joshen Limab211a417824
diff --git a/apps/studio/pages/project/[ref]/storage/files/buckets/[bucketId].tsx b/apps/studio/pages/project/[ref]/storage/files/buckets/[bucketId].tsx
index 8a8b7416209..433b8e73e23 100644
--- a/apps/studio/pages/project/[ref]/storage/files/buckets/[bucketId].tsx
+++ b/apps/studio/pages/project/[ref]/storage/files/buckets/[bucketId].tsx
@@ -35,7 +35,7 @@ const BucketPage: NextPageWithLayout = () => {
}
// If the bucket is not found or the bucket type is ANALYTICS or VECTOR, show an error message
- if (!bucket || bucket.type !== 'STANDARD') {
+ if (!bucket || ('type' in bucket && bucket.type !== 'STANDARD')) {
return (
<div className="flex h-full w-full items-center justify-center">
<p className="text-sm text-foreground-light">Bucket "{bucketId}" cannot be found</p>