From 38957d4f323cceaad92d1751fe2116f426e763f7 Mon Sep 17 00:00:00 2001 From: Vito0912 <86927734+Vito0912@users.noreply.github.com> Date: Sun, 27 Apr 2025 19:34:12 +0200 Subject: [PATCH] fix shift times not works when editing --- client/pages/audiobook/_id/chapters.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/pages/audiobook/_id/chapters.vue b/client/pages/audiobook/_id/chapters.vue index 659e4e58..94602e8d 100644 --- a/client/pages/audiobook/_id/chapters.vue +++ b/client/pages/audiobook/_id/chapters.vue @@ -341,8 +341,8 @@ export default { return } - if (this.newChapters[0].end + amount <= 0) { - this.$toast.error('Invalid shift amount. First chapter would have zero or negative length.') + if (this.newChapters[1].start + amount <= 0) { + this.$toast.error('Invalid shift amount. The first chapter would have zero or negative length and would be overwritten by the second chapter. Increase the start duration of second chapter. ') return }