From 8d434e30d43efdcfb3d15c414ff7a943a44c255d Mon Sep 17 00:00:00 2001 From: Jamie V Date: Wed, 8 Jan 2025 15:49:33 -0800 Subject: [PATCH] remove description search for filter --- src/api/menu/components/SuperMenu.vue | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/api/menu/components/SuperMenu.vue b/src/api/menu/components/SuperMenu.vue index 6052f8240a..754cc2f460 100644 --- a/src/api/menu/components/SuperMenu.vue +++ b/src/api/menu/components/SuperMenu.vue @@ -160,20 +160,12 @@ export default { if (Array.isArray(this.options.actions[0])) { // Handle grouped actions this.filteredActions = this.options.actions - .map((group) => - group.filter( - (action) => - action.name.toLowerCase().includes(term) || - (action.description && action.description.toLowerCase().includes(term)) - ) - ) + .map((group) => group.filter((action) => action.name.toLowerCase().includes(term))) .filter((group) => group.length > 0); } else { // Handle flat actions list - this.filteredActions = this.options.actions.filter( - (action) => - action.name.toLowerCase().includes(term) || - (action.description && action.description.toLowerCase().includes(term)) + this.filteredActions = this.options.actions.filter((action) => + action.name.toLowerCase().includes(term) ); } },