Fetch: check for intermediate properties of error object

This commit is contained in:
cgfhtw
2024-03-28 15:35:26 +01:00
parent 3023cd2e94
commit abfd92e387
+1 -1
View File
@@ -99,7 +99,7 @@ export const CoreFetchCmpt = {
*
*/
errorHandler: function(error) {
if (error.response.data.retval)
if (error.response?.data?.retval)
this.setError(error.response.data.retval);
else
this.setError(error.message);