-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(frontend): hidding logic wasn't working for hierachicalFacets pan…
…el (#209) InstantSearch panel permits to implement a `hidden` function to determine if the panel should be hidden. It wasn't working for hierarchicalFacets, and a workaround had been done in #146 to try to replicate the logic. The problem is that when the panel is hidden by this workaround, if the selected filters are later reset, **it's not becoming visible anymore**. ### Changes - fix the `hidden` function: the hierarchicalFacets are always present in `options.results.hierarchicalFacets`. But when there are no results matching, the `data` field is `null`. Checking the presence of `data` fixes the behaviour - remove the workaround --- SFCC-410
- Loading branch information
Showing
2 changed files
with
4 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters