mirror of
https://github.com/nasa/openmct.git
synced 2025-03-20 02:55:18 +00:00
remove description search for filter
This commit is contained in:
parent
2b24033ae1
commit
8d434e30d4
@ -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)
|
||||
);
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user