Skip to content
Snippets Groups Projects
Commit 94dfec4e authored by esikkala's avatar esikkala
Browse files

Fix facet value disabling

parent be3f77e1
No related branches found
No related tags found
No related merge requests found
......@@ -167,7 +167,7 @@ class HierarchicalFacet extends Component {
// prevent selecting when another facet is still updating:
|| this.props.someFacetIsFetching
// prevent selecting all facet values:
|| (selectedCount >= this.props.facet.distinctValueCount - 2 && !isSelected)
|| (selectedCount >= this.props.facet.distinctValueCount - 1 && !isSelected)
}
onChange={this.handleCheckboxChange(treeObj)}
value={treeObj.node.id}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment