mirror of https://github.com/usememos/memos.git
Update web/src/components/MemoEditor/ActionButton/LocationSelector.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Ben Mitchinson <mitchinson.dev@gmail.com>
This commit is contained in:
parent
799f7b39bd
commit
aa09f0609c
|
|
@ -118,7 +118,7 @@ const LocationSelector = (props: Props) => {
|
||||||
}, [state.latInput, state.lngInput]);
|
}, [state.latInput, state.lngInput]);
|
||||||
|
|
||||||
const onPositionChanged = (position: LatLng) => {
|
const onPositionChanged = (position: LatLng) => {
|
||||||
setState({ ...state, position });
|
setState((prev) => ({ ...prev, position }));
|
||||||
};
|
};
|
||||||
|
|
||||||
const removeLocation = (e: React.MouseEvent) => {
|
const removeLocation = (e: React.MouseEvent) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue