diff --git a/src/components/AppFilter/AppFilter.vue b/src/components/AppFilter/AppFilter.vue index 2069552d..785a59fe 100644 --- a/src/components/AppFilter/AppFilter.vue +++ b/src/components/AppFilter/AppFilter.vue @@ -25,13 +25,14 @@ const selectCategory = (category: Category) => { closeDropdown() } const filterCategories = () => { + categoriesList.value = categories + if (filterValue.value) { categoriesList.value = categoriesList.value.filter((category) => category.name.toLowerCase().includes(filterValue.value.toLowerCase()) ) return } - categoriesList.value = categories }