Switch to finally for operation.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-10-01 16:21:52 -05:00
parent 7af402d542
commit 6b8170324b
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
1 changed files with 1 additions and 3 deletions

View File

@ -96,9 +96,7 @@ const BootstrapVueNotifiers = {
Vue.prototype.$wrapWithLoading = function (promise) {
this.$setLoading(true);
promise.then(() => {
this.$setLoading(false);
}).catch(() => {
promise.finally(() => {
this.$setLoading(false);
});