Skip to content

Commit

Permalink
GraphQL mutation clear with variables
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin committed Nov 23, 2021
1 parent 340bfd2 commit c872150
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions resources/js/components/GraphqlMutation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,15 @@
return
}
if (this.clear) {
this.changes = {}
}
if (this.callback) {
await this.callback(this.changes, this.data, response)
}
if (this.clear) {
this.changes = {}
this.data = {}
}
var self = this
self.mutated = true
setTimeout(function() {
Expand Down

0 comments on commit c872150

Please sign in to comment.