Typescript - errorResponse() responseStatus not on root vue data?

Assuming we have something like this:


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.

I think I have this addressed for now. Just needed to call errorResponse.call(frm, field)