Skip to content

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

fix: lint

jamesgeorge007a0dd02ec076f
diff --git a/pages/graphql.vue b/pages/graphql.vue
index 35673aa14..f6bdcebe2 100644
--- a/pages/graphql.vue
+++ b/pages/graphql.vue
@@ -185,30 +185,30 @@ export default {
this.subscriptionFields = sFields;
}
- const typeMap = schema.getTypeMap();
- const types = [];
-
- const queryTypeName = schema.getQueryType()
- ? schema.getQueryType().name
- : "";
- const mutationTypeName = schema.getMutationType()
- ? schema.getMutationType().name
- : "";
- const subscriptionTypeName = schema.getSubscriptionType()
- ? schema.getSubscriptionType().name
- : "";
-
- for (const type in typeMap) {
- if (
- !typeMap[type].name.startsWith("__") &&
- ![queryTypeName, mutationTypeName, subscriptionTypeName].includes(
- typeMap[type].name
- ) &&
- typeMap[type] instanceof gql.GraphQLObjectType
- ) {
- types.push(typeMap[type]);
- }
+ const typeMap = schema.getTypeMap();
+ const types = [];
+
+ const queryTypeName = schema.getQueryType()
+ ? schema.getQueryType().name
+ : "";
+ const mutationTypeName = schema.getMutationType()
+ ? schema.getMutationType().name
+ : "";
+ const subscriptionTypeName = schema.getSubscriptionType()
+ ? schema.getSubscriptionType().name
+ : "";
+
+ for (const type in typeMap) {
+ if (
+ !typeMap[type].name.startsWith("__") &&
+ ![queryTypeName, mutationTypeName, subscriptionTypeName].includes(
+ typeMap[type].name
+ ) &&
+ typeMap[type] instanceof gql.GraphQLObjectType
+ ) {
+ types.push(typeMap[type]);
}
+ }
this.gqlTypes = types;
this.$nuxt.$loading.finish();