Initialize list with none selected

This commit is contained in:
Jake McDermott 2019-12-11 08:41:05 -05:00
parent 04c535e3f9
commit 014520ee2b
No known key found for this signature in database
GPG Key ID: 0E56ED990CDFCB4F

View File

@ -146,7 +146,8 @@ class InventoriesList extends Component {
const { match, i18n } = this.props;
const canAdd =
actions && Object.prototype.hasOwnProperty.call(actions, 'POST');
const isAllSelected = selected.length === inventories.length;
const isAllSelected =
selected.length === inventories.length && selected.length !== 0;
const addButton = (
<AddDropDownButton
key="add"