From 951afaa568071511c5494f4d0777f0072bc3de64 Mon Sep 17 00:00:00 2001 From: Undergrid Date: Sat, 24 Sep 2022 23:40:07 +0100 Subject: [PATCH] Update client/components/modals/BatchQuickMatchModel.vue Co-authored-by: advplyr <67830747+advplyr@users.noreply.github.com> --- client/components/modals/BatchQuickMatchModel.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client/components/modals/BatchQuickMatchModel.vue b/client/components/modals/BatchQuickMatchModel.vue index 233b0134..a80beefa 100644 --- a/client/components/modals/BatchQuickMatchModel.vue +++ b/client/components/modals/BatchQuickMatchModel.vue @@ -125,13 +125,10 @@ export default { }) .then(() => { this.$toast.info('Batch quick match of ' + this.selectedBookIds.length + ' books started!') - this.processing = false - this.$store.commit('setProcessingBatch', false) - this.show = false - }) - .catch((error) => { + }).catch((error) => { this.$toast.error('Batch quick match failed') console.error('Failed to batch quick match', error) + }).finally(() => { this.processing = false this.$store.commit('setProcessingBatch', false) this.show = false