Skip to content

Commit

Permalink
Only render slider when listing is extended
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasGraml11 committed Oct 30, 2023
1 parent f2fca1d commit 37776eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{% endif %}

{% if filter is instanceof("\\Nosto\\NostoIntegration\\Search\\Response\\GraphQL\\Filter\\RangeSliderFilter") %}
{% sw_include '@NostoIntegration/storefront/component/listing/filter/filter-range-slider.html.twig' with {
{% sw_include '@Storefront/storefront/component/listing/filter/filter-range.html.twig' with {
sidebar: sidebar,
name: filter.id,
minKey: filter.minKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@
{% block component_filter_range_container %}
{{ parent() }}

<div class="nosto--range-slider"></div>
{% if context.context.extensions.nostoService.enabled %}
<div class="nosto--range-slider"></div>
{% endif %}
{% endblock %}

0 comments on commit 37776eb

Please sign in to comment.