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(() => {
|
rateLimit.current.nominatimTimeoutId = setTimeout(() => {
|
||||||
updateReverseGeocoding();
|
updateReverseGeocoding();
|
||||||
rateLimit.current.lastNominatimFetch = new Date();
|
rateLimit.current.lastNominatimFetch = new Date();
|
||||||
}, timeLeft);
|
}, Math.max(0, timeLeft));
|
||||||
}, [state.position]);
|
}, [state.position]);
|
||||||
|
|
||||||
const onPositionChanged = (position: LatLng) => {
|
const onPositionChanged = (position: LatLng) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue