From 398e0f690d53ed73514266f71013060162a30cb2 Mon Sep 17 00:00:00 2001 From: mama Date: Tue, 30 Jan 2018 16:15:38 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20Ctrl-P=20pour=20rechercher=20une?= =?UTF-8?q?=20r=C3=A8gle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/pages/RulesList.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/components/pages/RulesList.js b/source/components/pages/RulesList.js index 6c529867e..ce3a874da 100644 --- a/source/components/pages/RulesList.js +++ b/source/components/pages/RulesList.js @@ -89,9 +89,9 @@ export class SearchBar extends React.Component { ) filterOptions = (options, filter) => this.fuse.search(filter) render() { - let { rules } = this.props, - { i18n } = this.context - let { selectedOption } = this.state + let { rules, finish = () => null } = this.props, + { i18n } = this.context, + { selectedOption } = this.state, if (selectedOption != null) { this.props.finally && this.props.finally()