From 834f5927070d0f28b5a5d3f185c78f08e83e632d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Let=C3=ADcia=20Camara?= Date: Sat, 13 Oct 2018 02:18:14 -0300 Subject: [PATCH] Fix search on map when search is deleted --- src/components/EnhancedTable.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/EnhancedTable.js b/src/components/EnhancedTable.js index bb3f6f7..cd7616f 100644 --- a/src/components/EnhancedTable.js +++ b/src/components/EnhancedTable.js @@ -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