Skip to content

Commit

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

* 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 and TinLe committed Dec 22, 2021
1 parent e88f1ca commit 866999a
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 866999a

Please sign in to comment.