Skip to content

Commit f987582

Browse files
committed
clear stale geocoding results
1 parent 7ba5fe6 commit f987582

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/features/map/components/GeocodingSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ const GeocodingSearch = forwardRef<GeocodingSearchHandle, GeocodingSearchProps>(
274274
? isLoading
275275
? loadingMessage
276276
: isError
277-
? error || errorMessage
277+
? errorMessage
278278
: showNoResults
279279
? noResultsMessage
280280
: ""

src/features/map/hooks/useGeocodingSearch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export function useGeocodingSearch({
5454
return;
5555
}
5656

57+
setFeatures([]);
5758
setStatus("loading");
5859

5960
let cancelled = false;

0 commit comments

Comments
 (0)