Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix(connector): onSearchParameters with correct context
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Mar 26, 2019
1 parent a70618c commit fbb8516
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ describe('createConnector', () => {
expect(onSearchParameters).toHaveBeenCalledTimes(1);
expect(onSearchParameters).toHaveBeenCalledWith(
expect.any(Function),
context,
{ ais: context },
{ ...props, contextValue: context }
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ export function createConnectorWithoutContext(
if (connectorDesc.getSearchParameters) {
this.props.contextValue.onSearchParameters(
connectorDesc.getSearchParameters.bind(this),
this.props.contextValue,
{
ais: this.props.contextValue,
multiIndexContext: this.props.indexContextValue,
},
this.props
);
}
Expand Down

0 comments on commit fbb8516

Please sign in to comment.