[Vue warn]: Error in render: TypeError: Cannot read property ‘xxxx’of undefined

When using the infinite scroll of element UI, the error occurs. The data displayed asynchronously has no initial data, and then the requested data is displayed. The error is reported when the initial data is displayed
just set an initial value for the error value

or add a judgment to render the data when there is data, and not display it when there is no data.

Read More: