mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix(dashboard): enumerated types window showing other types such as composite (#20576)
fix(dashboard): enumerated types window showing other types
This commit is contained in:
1 parent
186e10c714
commit
eaf38b38c8
1 file changed
+2
-1
@@ -33,7 +33,8 @@ export async function getEnumeratedTypes(
|
||||
})
|
||||
|
||||
if (error) throw error
|
||||
return data
|
||||
const enumeratedTypes = data.filter((type) => type.enums.length > 0)
|
||||
return enumeratedTypes
|
||||
}
|
||||
|
||||
export type EnumeratedTypesData = Awaited<ReturnType<typeof getEnumeratedTypes>>
|
||||
|
||||
Reference in new issue
Block a user