From 099ab8c538cd7a32d86d90459b9a3f3f83dfa22a Mon Sep 17 00:00:00 2001 From: MartinsOnuoha Date: Fri, 27 Oct 2023 17:36:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(appfilter.vue):=20add=20real?= =?UTF-8?q?time=20list=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AppFilter/AppFilter.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }