Assuming we have something like this:
:error-messages="errorResponse('NewLocation.State')"
Is there anyway to set the responseStatus on a different object. I can’t seem to get this to work?
data() {
return {
form: {
main: {responseStatus: null, trackErrors: []}
}
}
}
Same with the errorsummary:
return errorResponseExcept.call(this.form.main, Object.keys(this.form.main.trackErrors)); // array of errors being used on the form
In the catch of the client call I am setting the this.form.main.responseStatus which is correct. Just can’t determine how to pull them back out.