Fix logic used to show legend total block (https://github.com/woocommerce/woocommerce-admin/pull/1559)
This commit is contained in:
parent
bce82c7572
commit
0cb1aac8b9
|
@ -61,7 +61,7 @@ class D3Legend extends Component {
|
|||
} = this.props;
|
||||
const { isScrollable } = this.state;
|
||||
const numberOfRowsVisible = data.filter( row => row.visible ).length;
|
||||
const showTotalLabel = legendDirection === 'column' && data.length > numberOfRowsVisible && totalLabel;
|
||||
const showTotalLabel = legendDirection === 'column' && data.length > selectionLimit && totalLabel;
|
||||
|
||||
const visibleKeys = data.filter( key => key.visible );
|
||||
|
||||
|
|
Loading…
Reference in New Issue