This commit is contained in:
Albert Juhé Lluveras 2019-02-15 11:50:41 +01:00 committed by GitHub
parent bce82c7572
commit 0cb1aac8b9
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class D3Legend extends Component {
} = this.props; } = this.props;
const { isScrollable } = this.state; const { isScrollable } = this.state;
const numberOfRowsVisible = data.filter( row => row.visible ).length; 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 ); const visibleKeys = data.filter( key => key.visible );