mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-22 13:05:36 +03:00
- client: fix request count in clients table
This commit is contained in:
parent
c9ccc53282
commit
8c8deb3d3d
1 changed files with 4 additions and 4 deletions
|
@ -62,9 +62,9 @@ class ClientsTable extends Component {
|
|||
};
|
||||
};
|
||||
|
||||
getStats = (ids, stats) => {
|
||||
getStats = (name, stats) => {
|
||||
if (stats) {
|
||||
const currentStats = stats.find(item => ids.includes(item.name));
|
||||
const currentStats = stats.find(item => item.info && item.info.name === name);
|
||||
return currentStats && currentStats.count;
|
||||
}
|
||||
|
||||
|
@ -180,8 +180,8 @@ class ClientsTable extends Component {
|
|||
accessor: 'statistics',
|
||||
minWidth: 120,
|
||||
Cell: (row) => {
|
||||
const { ids } = row.original;
|
||||
const clientStats = this.getStats(ids, this.props.topClients);
|
||||
const { name } = row.original;
|
||||
const clientStats = this.getStats(name, this.props.topClients);
|
||||
|
||||
if (clientStats) {
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue