Fix search on map when search is deleted

This commit is contained in:
Letícia Camara 2018-10-13 02:18:14 -03:00
parent cb8f0ba3fd
commit 834f592707

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