diff --git a/resources/js/components/catalog-new/SearchOptionsController.vue b/resources/js/components/catalog-new/SearchOptionsController.vue index 160d9bf32..a9072a39d 100644 --- a/resources/js/components/catalog-new/SearchOptionsController.vue +++ b/resources/js/components/catalog-new/SearchOptionsController.vue @@ -22,9 +22,9 @@ export default { ) .map((selected) => ({ value: selected, count: 0, checked: true })), ] - return matchSorter(optionsWithSelected, this.search, { + return this.search ? matchSorter(optionsWithSelected, this.search, { keys: [(option) => formatAuthorName(option.value)], - }) + }) : optionsWithSelected }, }, render() {