- {buckets.map((bucket) => {
- const bucketPolicies = get(
- find(formattedStorageObjectPolicies, { name: bucket.name }),
- ['policies'],
- []
- ).sort((a: any, b: any) => a.name.localeCompare(b.name))
-
+ {filteredBucketsWithPolicies.map(({ bucket, policies }) => {
return (
{
{/* Only used for adding policies to buckets */}
{
{
danger
visible={!isEmpty(selectedPolicyToDelete)}
title="Confirm to delete policy"
- description={`This is permanent! Are you sure you want to delete the policy "${selectedPolicyToDelete.name}"`}
+ description={`This is permanent! Are you sure you want to delete the policy "${selectedPolicyToDelete?.name}"`}
buttonLabel="Delete"
buttonLoadingLabel="Deleting"
onSelectCancel={onCancelPolicyDelete}
onSelectConfirm={onDeletePolicy}
/>
-
+ >
)
}
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorBucketDialog.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorBucketDialog.tsx
index d4e801dec5e57..34f3a3b6692fa 100644
--- a/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorBucketDialog.tsx
+++ b/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorBucketDialog.tsx
@@ -150,6 +150,7 @@ export const CreateVectorBucketDialog = () => {
className="w-fit"
icon={