Merge: - client: fix request count in clients table
* commit '8c8deb3d3db72a2f091156d3ec10447f0e6c062c': - client: fix request count in clients table
This commit is contained in:
commit
e85fdd7f09
|
@ -62,9 +62,9 @@ class ClientsTable extends Component {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
getStats = (ids, stats) => {
|
getStats = (name, stats) => {
|
||||||
if (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;
|
return currentStats && currentStats.count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -180,8 +180,8 @@ class ClientsTable extends Component {
|
||||||
accessor: 'statistics',
|
accessor: 'statistics',
|
||||||
minWidth: 120,
|
minWidth: 120,
|
||||||
Cell: (row) => {
|
Cell: (row) => {
|
||||||
const { ids } = row.original;
|
const { name } = row.original;
|
||||||
const clientStats = this.getStats(ids, this.props.topClients);
|
const clientStats = this.getStats(name, this.props.topClients);
|
||||||
|
|
||||||
if (clientStats) {
|
if (clientStats) {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue