We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 207255b commit 47ca956Copy full SHA for 47ca956
resources/js/components/GraphqlMutation.vue
@@ -126,11 +126,14 @@ export default {
126
if (!GraphQLError.prototype.isPrototypeOf(error)) {
127
throw error
128
}
129
+
130
const errorResponse = error.response.json()
131
if (this.errorCallback) {
132
await this.errorCallback(this.data, errorResponse)
133
134
135
+ this.error = error.message
136
137
if (this.alert) {
138
error.errors.forEach((error) => {
139
Notify(error.message, 'error')
@@ -140,7 +143,7 @@ export default {
140
143
return errorResponse
141
144
})
142
145
- if (response.data.errors) {
146
+ if (response.errors) {
147
return
148
149
0 commit comments