diff --git a/packages/atomic/src/components/commerce/facets/atomic-commerce-category-facet/atomic-commerce-category-facet.tsx b/packages/atomic/src/components/commerce/facets/atomic-commerce-category-facet/atomic-commerce-category-facet.tsx index 8f3c78d7d86..e917d4edbc7 100644 --- a/packages/atomic/src/components/commerce/facets/atomic-commerce-category-facet/atomic-commerce-category-facet.tsx +++ b/packages/atomic/src/components/commerce/facets/atomic-commerce-category-facet/atomic-commerce-category-facet.tsx @@ -29,7 +29,6 @@ import {FacetInfo} from '../../../common/facets/facet-common-store'; import {FacetContainer} from '../../../common/facets/facet-container/facet-container'; import {FacetGuard} from '../../../common/facets/facet-guard'; import {FacetHeader} from '../../../common/facets/facet-header/facet-header'; -import {FacetPlaceholder} from '../../../common/facets/facet-placeholder/facet-placeholder'; import {announceFacetSearchResultsWithAriaLive} from '../../../common/facets/facet-search/facet-search-aria-live'; import {FacetSearchInput} from '../../../common/facets/facet-search/facet-search-input'; import {FacetSearchMatches} from '../../../common/facets/facet-search/facet-search-matches'; @@ -403,7 +402,7 @@ export class AtomicCategoryFacet implements InitializableComponent { hasError={hasError} hasResults={values.length > 0} > - {firstSearchExecuted ? ( + { {this.renderHeader()} {!this.isCollapsed && [ @@ -445,9 +444,7 @@ export class AtomicCategoryFacet implements InitializableComponent { ), ]} - ) : ( - - )} + } ); } diff --git a/packages/atomic/src/components/commerce/facets/atomic-commerce-facet/atomic-commerce-facet.tsx b/packages/atomic/src/components/commerce/facets/atomic-commerce-facet/atomic-commerce-facet.tsx index 82b19af8bca..753088fd683 100644 --- a/packages/atomic/src/components/commerce/facets/atomic-commerce-facet/atomic-commerce-facet.tsx +++ b/packages/atomic/src/components/commerce/facets/atomic-commerce-facet/atomic-commerce-facet.tsx @@ -26,7 +26,6 @@ import {FacetInfo} from '../../../common/facets/facet-common-store'; import {FacetContainer} from '../../../common/facets/facet-container/facet-container'; import {FacetGuard} from '../../../common/facets/facet-guard'; import {FacetHeader} from '../../../common/facets/facet-header/facet-header'; -import {FacetPlaceholder} from '../../../common/facets/facet-placeholder/facet-placeholder'; import {announceFacetSearchResultsWithAriaLive} from '../../../common/facets/facet-search/facet-search-aria-live'; import {FacetSearchInput} from '../../../common/facets/facet-search/facet-search-input'; import {FacetSearchInputGuard} from '../../../common/facets/facet-search/facet-search-input-guard'; @@ -114,7 +113,7 @@ export class AtomicCommerceFacet implements InitializableComponent { firstSearchExecuted={firstSearchExecuted} hasResults={this.facetState.values.length > 0} > - {firstSearchExecuted ? ( + { { > {this.renderBody()} - ) : ( - - )} + } ); } diff --git a/packages/atomic/src/components/commerce/facets/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.tsx b/packages/atomic/src/components/commerce/facets/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.tsx index c7627391570..8ae87983b16 100644 --- a/packages/atomic/src/components/commerce/facets/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.tsx +++ b/packages/atomic/src/components/commerce/facets/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.tsx @@ -17,7 +17,6 @@ import {FacetInfo} from '../../../common/facets/facet-common-store'; import {FacetContainer} from '../../../common/facets/facet-container/facet-container'; import {FacetGuard} from '../../../common/facets/facet-guard'; import {FacetHeader} from '../../../common/facets/facet-header/facet-header'; -import {FacetPlaceholder} from '../../../common/facets/facet-placeholder/facet-placeholder'; import {formatHumanReadable} from '../../../common/facets/numeric-facet/formatter'; import {NumericFacetValueLink} from '../../../common/facets/numeric-facet/value-link'; import {NumericFacetValuesContainer} from '../../../common/facets/numeric-facet/values-container'; @@ -132,7 +131,7 @@ export class AtomicCommerceNumericFacet hasError={hasError} hasResults={this.shouldRenderFacet} > - {firstSearchExecuted ? ( + { - ) : ( - - )} + } ); } diff --git a/packages/atomic/src/components/commerce/facets/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.tsx b/packages/atomic/src/components/commerce/facets/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.tsx index ef144080eb0..1388bfb86fe 100644 --- a/packages/atomic/src/components/commerce/facets/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.tsx +++ b/packages/atomic/src/components/commerce/facets/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.tsx @@ -21,7 +21,6 @@ import {FacetInfo} from '../../../common/facets/facet-common-store'; import {FacetContainer} from '../../../common/facets/facet-container/facet-container'; import {FacetGuard} from '../../../common/facets/facet-guard'; import {FacetHeader} from '../../../common/facets/facet-header/facet-header'; -import {FacetPlaceholder} from '../../../common/facets/facet-placeholder/facet-placeholder'; import {FacetValueLabelHighlight} from '../../../common/facets/facet-value-label-highlight/facet-value-label-highlight'; import {FacetValueLink} from '../../../common/facets/facet-value-link/facet-value-link'; import {FacetValuesGroup} from '../../../common/facets/facet-values-group/facet-values-group'; @@ -293,7 +292,7 @@ export class AtomicCommerceTimeframeFacet hasError={hasError} hasResults={this.shouldRenderFacet} > - {firstSearchExecuted ? ( + { {this.renderHeader()} {!this.isCollapsed && [ @@ -301,9 +300,7 @@ export class AtomicCommerceTimeframeFacet this.shouldRenderInput && this.renderDateInput(), ]} - ) : ( - - )} + } ); }