Skip to content

Commit

Permalink
[Security Solution] updates host risk score decimal count (UI) (#119228)
Browse files Browse the repository at this point in the history
* updates host risk score decimal count

* fix function

* changes isNaN to Number.isNaN

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Ece Ozalp <[email protected]>
  • Loading branch information
3 people authored Nov 29, 2021
1 parent 2a0312c commit 7e9b1bc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const columns: Array<EuiTableFieldDataColumnType<LinkPanelListItem>> = [
align: 'right',
field: 'count',
name: 'Risk Score',
render: (riskScore) =>
Number.isNaN(riskScore) ? riskScore : Number.parseFloat(riskScore).toFixed(2),
sortable: true,
truncateText: true,
width: '15%',
Expand Down

0 comments on commit 7e9b1bc

Please sign in to comment.