Skip to content

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

fix crash in security advisor (#26658)

Jordi Enric9ded71534603
diff --git a/apps/studio/components/ui/FilterPopover.tsx b/apps/studio/components/ui/FilterPopover.tsx
index 390f897715c..a739950e7e9 100644
--- a/apps/studio/components/ui/FilterPopover.tsx
+++ b/apps/studio/components/ui/FilterPopover.tsx
@@ -17,7 +17,7 @@ export const FilterPopover = ({
activeOptions = [],
valueKey,
labelKey,
- name,
+ name = 'default',
variant = 'rectangular',
onSaveFilters,
disabled,
@@ -27,6 +27,9 @@ export const FilterPopover = ({
const formattedOptions = activeOptions.map((option) => {
const base = options.find((x) => x[valueKey] === option)
+ if (!base || !base[labelKey]) {
+ return ''
+ }
return base[labelKey]
})