- {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/to-be-cleaned/NoSearchResults.tsx b/apps/studio/components/to-be-cleaned/NoSearchResults.tsx
deleted file mode 100644
index 4214b8a92f8..00000000000
--- a/apps/studio/components/to-be-cleaned/NoSearchResults.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import { BASE_PATH } from 'lib/constants'
-import SVG from 'react-inlinesvg'
-
-/**
- * To be deprecated in favor of NoSearchResults in components/ui
- */
-export const NoSearchResults = () => {
- return (
-