The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix adding bucket policy to schema (#38499)
Saxon Fletcherff8a4be0e8a5
diff --git a/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesBucketRow.tsx b/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesBucketRow.tsxindex 1dffed34246..dc71182c82f 100644--- a/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesBucketRow.tsx+++ b/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesBucketRow.tsx@@ -23,7 +23,7 @@ interface StoragePoliciesBucketRowProps {label: stringbucket?: Bucketpolicies: PostgresPolicy[]- onSelectPolicyAdd: (bucketName: string, table: string) => void+ onSelectPolicyAdd: (bucketName: string | undefined, table: string) => voidonSelectPolicyEdit: (policy: PostgresPolicy, bucketName: string, table: string) => voidonSelectPolicyDelete: (policy: PostgresPolicy) => void}@@ -45,11 +45,9 @@ export const StoragePoliciesBucketRow = ({<CardTitle>{label}</CardTitle>{bucket?.public && <Badge variant="warning">Public</Badge>}</div>- {!!bucket && (- <Button type="outline" onClick={() => onSelectPolicyAdd(bucket.name, table)}>- New policy- </Button>- )}+ <Button type="outline" onClick={() => onSelectPolicyAdd(bucket?.name, table)}>+ New policy+ </Button></CardHeader>{policies.length === 0 ? (<CardContent>