diff --git a/packages/quantic/force-app/main/default/lwc/quanticCategoryFacet/quanticCategoryFacet.js b/packages/quantic/force-app/main/default/lwc/quanticCategoryFacet/quanticCategoryFacet.js index 3dd2ce61999..51f9e27bb5b 100644 --- a/packages/quantic/force-app/main/default/lwc/quanticCategoryFacet/quanticCategoryFacet.js +++ b/packages/quantic/force-app/main/default/lwc/quanticCategoryFacet/quanticCategoryFacet.js @@ -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() {