Remove clearing of sessionToken when the input is empty

Note: this might be reversed, if there's some time limit for tokens)
This commit is contained in:
Vesa Luusua 2018-07-19 14:08:52 +03:00
parent f4fbb22b3c
commit aeac2cd960

View file

@ -217,7 +217,6 @@ class LocationAutocompleteInput extends Component {
this.setState({ highlightedIndex: -1 });
if (!newValue) {
this.autocompleteSessionToken = null;
// No need to fetch predictions on empty input
return;
}