Skip to content

Commit

Permalink
fix(ltMap): immediate
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Aug 9, 2024
1 parent 64ed958 commit 3ddf346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/ltMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ onMounted(() => {
map.on('click', $event => mapClick($event));
watch(() => props.mapMarker, mapMarkerUpdater(map));
watch(() => props.mapObjectLocation, mapMarkerUpdater(map));
watch(() => props.mapMarker, mapMarkerUpdater(map), {immediate: true});
watch(() => props.mapObjectLocation, mapMarkerUpdater(map), {immediate: true});
});
function mapMarkerUpdater(map: L.Map): (mapMarker: LatLng) => void {
Expand Down

0 comments on commit 3ddf346

Please sign in to comment.