From 0d7e32801e646fc62e339059d537333a100b8101 Mon Sep 17 00:00:00 2001 From: Stanislas Bernard Date: Mon, 15 Jun 2015 14:55:59 +0200 Subject: [PATCH] [facets] Show all now working --- search/facet-box/facet.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/search/facet-box/facet.js b/search/facet-box/facet.js index 68758b3b8..a1cc4c545 100644 --- a/search/facet-box/facet.js +++ b/search/facet-box/facet.js @@ -2,6 +2,7 @@ let builder = require('focus').component.builder; let React = require('react'); +let keys = require('lodash/object/keys'); // Components @@ -89,10 +90,11 @@ let Facet = { if (!this.props.isExpanded || this.props.selectedDataKey) { return ''; } + let keysList = this.state.isShowAll ? keys(this.props.facet) : keys(this.props.facet).slice(0, this.props.nbDefaultDataList); return (