remove description search for filter

This commit is contained in:
Jamie V 2025-01-08 15:49:33 -08:00
parent 2b24033ae1
commit 8d434e30d4

View File

@ -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)
);
}
},