diff --git a/src/components/Search/AdditionalFilter/Languages/Tree/index.js b/src/components/Search/AdditionalFilter/Languages/Tree/index.js index 8508f404..6453d10f 100644 --- a/src/components/Search/AdditionalFilter/Languages/Tree/index.js +++ b/src/components/Search/AdditionalFilter/Languages/Tree/index.js @@ -85,9 +85,11 @@ class Tree extends React.PureComponent { } this.updateNodesWithChecked(props.checked, props.filterMode); + + const isAllChecked = this.constructor.isAllNodesChecked(Object.keys(this.flatNodes).length, props.checked); this.state = { - checkAll: false, + checkAll: isAllChecked || false, expanded: Object.values(this.flatNodes) .filter(item => item.expanded) diff --git a/src/components/Search/AdditionalFilter/index.js b/src/components/Search/AdditionalFilter/index.js index 0fa9bac9..294385e7 100644 --- a/src/components/Search/AdditionalFilter/index.js +++ b/src/components/Search/AdditionalFilter/index.js @@ -568,16 +568,18 @@ class AdditionalFilter extends React.PureComponent { > {showLanguagesTreeText} - +
+ +