From e3fe6ec6d96ae803bf1423020f01fdc69a603785 Mon Sep 17 00:00:00 2001 From: Johnny Date: Thu, 9 Oct 2025 00:43:18 +0800 Subject: [PATCH] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Johnny --- web/src/components/MemoEditor/ActionButton/LocationSelector.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/MemoEditor/ActionButton/LocationSelector.tsx b/web/src/components/MemoEditor/ActionButton/LocationSelector.tsx index 3cda7884d..3f5c0a47b 100644 --- a/web/src/components/MemoEditor/ActionButton/LocationSelector.tsx +++ b/web/src/components/MemoEditor/ActionButton/LocationSelector.tsx @@ -104,7 +104,7 @@ const LocationSelector = (props: Props) => { rateLimit.current.nominatimTimeoutId = setTimeout(() => { updateReverseGeocoding(); rateLimit.current.lastNominatimFetch = new Date(); - }, timeLeft); + }, Math.max(0, timeLeft)); }, [state.position]); const onPositionChanged = (position: LatLng) => {