Skip to content

Commit

Permalink
fix(webui): bulk edit books dialog incorrect validation for numberSor…
Browse files Browse the repository at this point in the history
…t set to 0

Closes: #1057
  • Loading branch information
gotson committed Jan 30, 2023
1 parent 3d0934b commit 4385f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions komga-webui/src/components/dialogs/BulkEditBooksDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4385f05

Please sign in to comment.