Skip to content

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

Removed unused fieldString computed property in gql/field.vue

Andrew Bastin5150e1312131
diff --git a/components/graphql/field.vue b/components/graphql/field.vue
index 0b4502efb..2263802a5 100644
--- a/components/graphql/field.vue
+++ b/components/graphql/field.vue
@@ -57,16 +57,6 @@ export default {
},
computed: {
- fieldString() {
- const args = (this.gqlField.args || []).reduce(
- (acc, { name, type }, index) =>
- acc + `${name}: ${type.toString()}${index !== this.gqlField.args.length - 1 ? ", " : ""}`,
- ""
- )
- const argsString = args.length > 0 ? `(${args})` : ""
- return `${this.gqlField.name}${argsString}: ${this.gqlField.type.toString()}`
- },
-
fieldName() {
return this.gqlField.name
},