From 4385f056296145de29ab3746bebad631bfa2478d Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Mon, 30 Jan 2023 10:03:30 +0800 Subject: [PATCH] fix(webui): bulk edit books dialog incorrect validation for numberSort set to 0 Closes: #1057 --- komga-webui/src/components/dialogs/BulkEditBooksDialog.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/komga-webui/src/components/dialogs/BulkEditBooksDialog.vue b/komga-webui/src/components/dialogs/BulkEditBooksDialog.vue index 12edd71e7d8..1638347386f 100644 --- a/komga-webui/src/components/dialogs/BulkEditBooksDialog.vue +++ b/komga-webui/src/components/dialogs/BulkEditBooksDialog.vue @@ -279,8 +279,8 @@ export default Vue.extend({ validateIsbn(isbn: string): string | boolean { return isbn && !new IsbnVerify(isbn).isIsbn13({check_digit: true}) ? this.$t('dialog.edit_books.field_isbn_error').toString() : true }, - validateRequired(value: string): string | boolean { - return !value ? this.$t('common.required').toString() : true + validateRequired(value: any): string | boolean { + return value || value === 0 ? true : this.$t('common.required').toString() }, validateReleaseDate(date: string): string | boolean { return date && !isMatch(date, 'yyyy-MM-dd') ? this.$t('dialog.edit_books.field_release_date_error').toString() : true