mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 17:18:23 +00:00
fix: schema type filter when latest schema version is broken (#5649)
This commit is contained in:
parent
925b41bfd7
commit
9c626df401
1 changed files with 2 additions and 2 deletions
|
|
@ -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 => ({
|
||||
|
|
|
|||
Loading…
Reference in a new issue