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

Fix facet header props

parent 1b3c1a9b
No related branches found
No related tags found
No related merge requests found
......@@ -253,7 +253,8 @@ class FacetBar extends React.Component {
facetLabel={label}
facet={facet}
facetConstrainSelf={facetConstrainSelf}
facetConstrainSelfUpdateID={this.props.facetDataConstrainSelf.facetUpdateID}
facetConstrainSelfUpdateID={this.props.facetDataConstrainSelf
? this.props.facetDataConstrainSelf.facetUpdateID : null}
isActive={isActive}
facetClass={this.props.facetClass}
resultClass={this.props.resultClass}
......
......@@ -310,7 +310,7 @@ FacetHeader.propTypes = {
facetLabel: PropTypes.string.isRequired,
facet: PropTypes.object,
facetConstrainSelf: PropTypes.object,
facetConstrainSelfUpdateID: PropTypes.number.isRequired,
facetConstrainSelfUpdateID: PropTypes.number,
isActive: PropTypes.bool.isRequired,
facetClass: PropTypes.string,
resultClass: PropTypes.string,
......
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