Ajout du Ctrl-P pour rechercher une règle

pull/206/head
mama 2018-01-30 16:15:38 +01:00 committed by Laurent Bossavit
parent c711f3fbd0
commit 398e0f690d
1 changed files with 3 additions and 3 deletions

View File

@ -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()