Skip to content

Commit

Permalink
fix quantic category facet
Browse files Browse the repository at this point in the history
  • Loading branch information
fpbrault committed Aug 29, 2024
1 parent 2d42e98 commit 451e53a
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,15 @@ export default class QuanticCategoryFacet extends LightningElement {
}
get values() {
return this.state?.valuesAsTrees ?? [];
if (!this.state?.valuesAsTrees?.length) {
return [];
}
if (this.state?.selectedValueAncestry?.length > 0) {
return this.state?.activeValue?.children ?? [];
}
return this.state?.valuesAsTrees;
}
get nonActiveParents() {
Expand Down

0 comments on commit 451e53a

Please sign in to comment.