title: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'data')
body: <p>I'm building out CRUD functionality and create had worked the other day with the same code in the component, but now it is giving an error:</p>
  <p><em>Unhandled Rejection (TypeError): Cannot read properties of undefined (reading 'data')</em></p>
  <p>I'm getting an error with the validations, and not sure if it has to do with props. Here is the code where the error exists:</p>
  <pre><code>&gt; 30 |     const errorResponse = err.response.data.errors;
   console.log(errorResponse)
       | ^  31 |     const errorArr = [];
    32 |     for (const key of Object.keys(errorResponse)) {
    33 |         errorArr.push(errorResponse[key].message)```
  
  Is anyone familiar with this issue and knows how to fix it?
  </code></pre>