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:
Ben Mitchinson 2025-10-07 23:10:22 -07:00 committed by GitHub
parent 799f7b39bd
commit aa09f0609c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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) => {