From c89319ffc5f79441df7f5fcf52c22867a064c25f Mon Sep 17 00:00:00 2001 From: advplyr Date: Mon, 20 Dec 2021 19:12:09 -0600 Subject: [PATCH] Fix:Batch edit genres not updating #246 --- client/pages/batch/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/pages/batch/index.vue b/client/pages/batch/index.vue index 4191d629..5e96e9c1 100644 --- a/client/pages/batch/index.vue +++ b/client/pages/batch/index.vue @@ -196,7 +196,8 @@ export default { } if (key === 'genres') { if (this.compareStringArrays(newBook[key], origBook[key])) { - diffObj[key] = newBook[key] + if (!diffObj.book) diffObj.book = {} + diffObj.book[key] = newBook[key] } } } @@ -223,6 +224,7 @@ export default { if (!updates.length) { return this.$toast.warning('No updates were made') } + console.log('Pushing updates', updates) this.isProcessing = true this.$axios