Skip to content

Commit

Permalink
Removed unused fieldString computed property in gql/field.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBastin committed Aug 24, 2020
1 parent b2f784e commit 5150e13
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions components/graphql/field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit 5150e13

Please sign in to comment.