From a4c1b31a1b5ec87c6f69cb1e692c2df3692f53eb Mon Sep 17 00:00:00 2001 From: Marie-Laure Thuret Date: Tue, 17 Jan 2017 17:17:31 +0100 Subject: [PATCH] fix(SFFV): correct propTypes and add missing default values (#1845) --- packages/react-instantsearch/src/components/List.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/react-instantsearch/src/components/List.js b/packages/react-instantsearch/src/components/List.js index bb62b55ab7..03f8932c0f 100644 --- a/packages/react-instantsearch/src/components/List.js +++ b/packages/react-instantsearch/src/components/List.js @@ -21,7 +21,11 @@ class List extends Component { limit: PropTypes.number, show: PropTypes.func, searchForFacetValues: PropTypes.func, - isFromSearch: PropTypes.bool.isRequired, + isFromSearch: PropTypes.bool, + }; + + defaultProps= { + isFromSearch: false, }; constructor() {