This repository has been archived by the owner on Dec 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: bind getSearchParmaters to the component instance
* fix: bind getSearchParmaters to the component instance When reducing over the searchParameters in findResultsState, searchParameters.getSearchParameters was being called with the wrong "this". This led to a bug in connectRange where this._currentRange was undefined when getSearchParameters was being called. If a "min" or "max" prop is provided to connectRange, an if block is executed inside getCurrentRefinement that tries to access properties on the undefined this._currentRange, causing an error
- Loading branch information
1 parent
4a4ff70
commit f34cb3d
Showing
4 changed files
with
45 additions
and
7 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
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