From dd46cf43856c44c82a65025560916eceda1bfd98 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Sun, 11 Feb 2018 21:30:16 +0100 Subject: [PATCH] chore(deps): update dependency eslint-config-algolia to v13 (#2599) * chore(deps): update dependency eslint-config-algolia to v13.0.1 * chore: fix lint --- package.json | 2 +- .../CurrentRefinedValues/CurrentRefinedValues.js | 7 ++++--- yarn.lock | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 6ececf0a9e..ef53f78206 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "enzyme": "2.9.1", "enzyme-to-json": "2.0.1", "eslint": "4.12.0", - "eslint-config-algolia": "12.0.0", + "eslint-config-algolia": "13.0.1", "eslint-config-prettier": "2.9.0", "eslint-import-resolver-webpack": "0.8.3", "eslint-plugin-import": "2.8.0", diff --git a/src/components/CurrentRefinedValues/CurrentRefinedValues.js b/src/components/CurrentRefinedValues/CurrentRefinedValues.js index 57fc0a82f0..ee12ea73f2 100644 --- a/src/components/CurrentRefinedValues/CurrentRefinedValues.js +++ b/src/components/CurrentRefinedValues/CurrentRefinedValues.js @@ -69,12 +69,13 @@ export class RawCurrentRefinedValues extends Component { } render() { + const refinements = map(this.props.refinements, (r, i) => + this._refinementElement(r, i) + ); return (
{this._clearAllElement('before', this.props.clearAllPosition)} -
- {map(this.props.refinements, this._refinementElement.bind(this))} -
+
{refinements}
{this._clearAllElement('after', this.props.clearAllPosition)}
); diff --git a/yarn.lock b/yarn.lock index e355e58c9a..0e3620a2a8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3323,9 +3323,9 @@ escope@^3.6.0: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-config-algolia@12.0.0: - version "12.0.0" - resolved "https://registry.yarnpkg.com/eslint-config-algolia/-/eslint-config-algolia-12.0.0.tgz#5d0ead285f84054713f623bc9bfb2e189967a0c8" +eslint-config-algolia@13.0.1: + version "13.0.1" + resolved "https://registry.yarnpkg.com/eslint-config-algolia/-/eslint-config-algolia-13.0.1.tgz#b94dedaf7d613dcca9f32c9488462100dc251aa3" eslint-config-prettier@2.9.0: version "2.9.0"