mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-05-24 01:13:00 -04:00
Fixed crash
This commit is contained in:
parent
65aec6a099
commit
a1074e69ac
@ -337,12 +337,12 @@ export default {
|
||||
|
||||
const lastChapter = this.newChapters[this.newChapters.length - 1]
|
||||
if (lastChapter.start + amount > this.mediaDurationRounded) {
|
||||
this.$toast.error($strings.ToastInvalidShiftAmountLast)
|
||||
this.$toast.error(this.$strings.ToastInvalidShiftAmountLast)
|
||||
return
|
||||
}
|
||||
|
||||
if (this.newChapters[1].start + amount <= 0) {
|
||||
this.$toast.error($strings.ToastInvalidShiftAmountStart)
|
||||
this.$toast.error(this.$strings.ToastInvalidShiftAmountStart)
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user