Avoid console error by catching potential fails

This commit is contained in:
Maikel Linke
2021-10-04 17:21:11 +11:00
parent eb87cdeb1c
commit 5b9d5a6bce

View File

@@ -31,6 +31,8 @@ angular.module("admin.indexUtils").factory "pendingChanges", ($q, resources, Sta
form.$setPristine() if form?
else
StatusMessage.display('failure', t('js.oh_no'))
.catch ->
StatusMessage.display('failure', t('js.oh_no'))
all
submit: (change) ->