Skip to content

Commit

Permalink
Unset loading after trying to setError
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Dec 19, 2024
1 parent 3eaa320 commit 8d398a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@
setError(error) {
try {
this.$store.dispatch('handleApiError', { error });
this.loading = false;
this.$store.dispatch('notLoading');
} catch (e) {
// nothing to do here, just catching the error to avoid
// unhandled errors in the dispatch to handleApiError
}
this.loading = false;
this.$store.dispatch('notLoading');
},
setCurrentAction(action) {
if (action === 'EDIT_DETAILS') {
Expand Down

0 comments on commit 8d398a9

Please sign in to comment.