diff --git a/komga-webui/src/components/dialogs/EditBooksDialog.vue b/komga-webui/src/components/dialogs/EditBooksDialog.vue index 9375d1b6..bd56c68a 100644 --- a/komga-webui/src/components/dialogs/EditBooksDialog.vue +++ b/komga-webui/src/components/dialogs/EditBooksDialog.vue @@ -412,6 +412,7 @@ import {helpers, requiredIf} from 'vuelidate/lib/validators' import {BookDto, BookThumbnailDto} from '@/types/komga-books' import IsbnVerify from '@saekitominaga/isbn-verify' import {isMatch} from 'date-fns' +import {debounce} from 'lodash' import {ERROR, ErrorEvent} from '@/types/events' import DropZone from '@/components/DropZone.vue' import ThumbnailCard from '@/components/ThumbnailCard.vue' @@ -488,10 +489,10 @@ export default Vue.extend({ }, authorSearch: { deep: true, - async handler(val: []) { + handler: debounce(async function (this: any, val: []) { const index = val.findIndex(x => x !== null) this.authorSearchResults = await this.$komgaReferential.getAuthorsNames(val[index]) - }, + }, 500), }, }, validations: {