Skip to content

Commit d2cb044

Browse files
committed
LeafletView/index: fix ownPositionMarker id
Before the id was accidentally passed in to the sendMessage-object toplevel, but it should have been inside the ownPositionMarker value
1 parent 5685e5e commit d2cb044

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/LeafletView/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,8 @@ const LeafletView: React.FC<LeafletViewProps> = ({
180180
return;
181181
}
182182
sendMessage({
183-
...ownPositionMarker,
184-
id: OWN_POSTION_MARKER_ID
185-
});
183+
ownPositionMarker: { ...ownPositionMarker, id: OWN_POSTION_MARKER_ID },
184+
});
186185
}, [initialized, ownPositionMarker, sendMessage]);
187186

188187
//Handle mapCenterPosition update

0 commit comments

Comments
 (0)