fix: schema type filter when latest schema version is broken (#5649)

This commit is contained in:
Laurin Quast 2024-10-08 13:01:18 +02:00 committed by GitHub
parent 925b41bfd7
commit 9c626df401
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,7 +27,7 @@ const TypeFilter_AllTypes = graphql(`
target(selector: { organization: $organization, project: $project, target: $target }) {
__typename
id
latestSchemaVersion {
latestValidSchemaVersion {
__typename
id
valid
@ -81,7 +81,7 @@ export function TypeFilter(props: {
requestPolicy: 'cache-first',
});
const allNamedTypes = query.data?.target?.latestSchemaVersion?.explorer?.types;
const allNamedTypes = query.data?.target?.latestValidSchemaVersion?.explorer?.types;
const types = useMemo(
() =>
allNamedTypes?.map(t => ({