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