mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-08-27 20:35:40 +00:00
Pull request 2351: 7583-clients-format-2
Updates #7583.
* commit 'cd5dd1eb16':
refactor: fix conditional check for content formatting in statistics column
This commit is contained in:
commit
0389515ee3
1 changed files with 8 additions and 5 deletions
|
|
@ -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>;
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue