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>
pull/5152/head
Ben Mitchinson 6 days ago committed by GitHub
parent 799f7b39bd
commit aa09f0609c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -118,7 +118,7 @@ const LocationSelector = (props: Props) => {
}, [state.latInput, state.lngInput]);
const onPositionChanged = (position: LatLng) => {
setState({ ...state, position });
setState((prev) => ({ ...prev, position }));
};
const removeLocation = (e: React.MouseEvent) => {

Loading…
Cancel
Save