Merge pull request #5511 from jakemcdermott/ui-next-fix-inv-list-select-all-state

Initialize inventory list with none selected

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2019-12-16 23:14:37 +00:00
committed by GitHub

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"