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

Commit

Permalink
fix: replace usage of Object.values (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthuret committed Apr 21, 2017
1 parent 53c0b82 commit 4c79e3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default function createInstantSearchManager({
derivatedWidgets,
} = getSearchParameters(helper.state);

Object.values(derivedHelpers).forEach(d => d.detach());
Object.keys(derivedHelpers).forEach(key => derivedHelpers[key].detach());
derivedHelpers = {};

helper.setState(sharedParameters);
Expand Down

0 comments on commit 4c79e3e

Please sign in to comment.