Skip to content

Commit

Permalink
Pull request 2351: 7583-clients-format-2
Browse files Browse the repository at this point in the history
Updates #7583.

* commit 'cd5dd1eb167d9bca014b2ff45f6826e7969d7b5c':
  refactor: fix conditional check for content formatting in statistics column
  • Loading branch information
ainar-g committed Feb 26, 2025
2 parents d8ce5b4 + cd5dd1e commit 0389515
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,15 @@ const ClientsTable = ({
sortMethod: (a: any, b: any) => b - a,
minWidth: 120,
Cell: (row: any) => {
let content = CellWrap(row);

if (!row.value) {
return content;
let content = row.value;
if (typeof content === "number") {
content = formatNumber(content);
} else {
content = CellWrap(row);
}
content = typeof content === "number" ? formatNumber(content) : content;
if (!content) {
return content;
}
return <LogsSearchLink search={row.original.name}>{content}</LogsSearchLink>;
},
},
Expand Down

0 comments on commit 0389515

Please sign in to comment.