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:
Nabhag Motivaras authored and GitHub committed 2024-01-22 16:33:16 +11:00
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>>