Removed unused fieldString computed property in gql/field.vue

This commit is contained in:
Andrew Bastin
2020-08-23 21:24:32 -04:00
parent b2f784eeff
commit 5150e13121

View File

@@ -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
},