mirror of https://github.com/usememos/memos.git
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Johnny <yourselfhosted@gmail.com>
This commit is contained in:
parent
83ccc30554
commit
e3fe6ec6d9
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue