Skip to content

Commit

Permalink
[frontend] fix attack patterns search with no description
Browse files Browse the repository at this point in the history
  • Loading branch information
marieflorescontact committed Apr 5, 2024
1 parent 6b3fe25 commit ca91417
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ class AttackPatternsMatrixColumnsComponent extends Component {
const sortByName = R.sortBy(R.prop('name'));
const filterByKeyword = (n) => searchTerm === ''
|| n.name.toLowerCase().indexOf(searchTerm.toLowerCase()) !== -1
|| n.description.toLowerCase().indexOf(searchTerm.toLowerCase()) !== -1
|| n.description?.toLowerCase().indexOf(searchTerm.toLowerCase()) !== -1
|| R.propOr('', 'x_mitre_id', n)
.toLowerCase()
.indexOf(searchTerm.toLowerCase()) !== -1
Expand Down

0 comments on commit ca91417

Please sign in to comment.