Skip to content

Commit

Permalink
[frontend] fix error when searching for attack patterns (#6551)
Browse files Browse the repository at this point in the history
  • Loading branch information
marieflorescontact committed Apr 5, 2024
1 parent 9ae0cd9 commit b236d24
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 b236d24

Please sign in to comment.