Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

perf: even

Liyas Thomas7c8ab6fd4a26
diff --git a/pages/graphql.vue b/pages/graphql.vue
index e93b85a72..6670241d8 100644
--- a/pages/graphql.vue
+++ b/pages/graphql.vue
@@ -349,54 +349,50 @@
v-for="field in filteredQueryFields"
:key="field.name"
>
- <GraphqlField
- :gql-field="field"
- :jump-type-callback="handleJumpToType"
- />
- </div>
- </SmartTab>
-
- <SmartTab
- v-if="mutationFields.length > 0"
- :id="'mutations'"
- :label="$t('mutations')"
- >
- <div
- v-for="field in filteredMutationFields"
- :key="field.name"
+ <GraphqlField
+ :gql-field="field"
+ :jump-type-callback="handleJumpToType"
+ />
+ </div>
+ </SmartTab>
+
+ <SmartTab
+ v-if="mutationFields.length > 0"
+ :id="'mutations'"
+ :label="$t('mutations')"
>
- <GraphqlField
- :gql-field="field"
- :jump-type-callback="handleJumpToType"
- />
- </div>
- </SmartTab>
-
- <SmartTab
- v-if="subscriptionFields.length > 0"
- :id="'subscriptions'"
- :label="$t('subscriptions')"
- >
- <div
- v-for="field in filteredSubscriptionFields"
- :key="field.name"
+ <div
+ v-for="field in filteredMutationFields"
+ :key="field.name"
+ >
+ <GraphqlField
+ :gql-field="field"
+ :jump-type-callback="handleJumpToType"
+ />
+ </div>
+ </SmartTab>
+
+ <SmartTab
+ v-if="subscriptionFields.length > 0"
+ :id="'subscriptions'"
+ :label="$t('subscriptions')"
>
- <GraphqlField
- :gql-field="field"
- :jump-type-callback="handleJumpToType"
- />
- </div>
- </SmartTab>
-
- <SmartTab
- v-if="graphqlTypes.length > 0"
- :id="'types'"
- ref="typesTab"
- :label="$t('types')"
- >
- <div
- v-for="type in filteredGraphqlTypes"
- :key="type.name"
+ <div
+ v-for="field in filteredSubscriptionFields"
+ :key="field.name"
+ >
+ <GraphqlField
+ :gql-field="field"
+ :jump-type-callback="handleJumpToType"
+ />
+ </div>
+ </SmartTab>
+
+ <SmartTab
+ v-if="graphqlTypes.length > 0"
+ :id="'types'"
+ ref="typesTab"
+ :label="$t('types')"
>
<div
v-for="type in filteredGraphqlTypes"