Skip to content

Commit e46da1d

Browse files
committed
Skip empty geocoder query
1 parent 5cece81 commit e46da1d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/map/control/MapGeocoder.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const MapGeocoder = () => {
5555
if (!query.trim()) {
5656
setResults([]);
5757
setLoading(false);
58+
return;
5859
}
5960
const controller = new AbortController();
6061
const timeoutId = setTimeout(async () => {

0 commit comments

Comments
 (0)