mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-25 21:35:07 +02:00
Fix:Batch edit genres not updating #246
This commit is contained in:
parent
8721dbda98
commit
c89319ffc5
1 changed files with 3 additions and 1 deletions
|
@ -196,7 +196,8 @@ export default {
|
||||||
}
|
}
|
||||||
if (key === 'genres') {
|
if (key === 'genres') {
|
||||||
if (this.compareStringArrays(newBook[key], origBook[key])) {
|
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) {
|
if (!updates.length) {
|
||||||
return this.$toast.warning('No updates were made')
|
return this.$toast.warning('No updates were made')
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('Pushing updates', updates)
|
console.log('Pushing updates', updates)
|
||||||
this.isProcessing = true
|
this.isProcessing = true
|
||||||
this.$axios
|
this.$axios
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue