Fix search on map when search is deleted

mx
Letícia Camara 2018-10-13 02:18:14 -03:00
parent cb8f0ba3fd
commit 834f592707
1 changed files with 1 additions and 0 deletions

View File

@ -144,6 +144,7 @@ class EnhancedTable extends Component {
// If query is empty or undefined
if (!query) {
this.setState({searchQuery: ''});
this.props.onSearchChange(this.props.data);
return;
}
// Update the search field as soon as the character is typed