Skip to content

Commit

Permalink
fix: visitedTrackNode handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckeller81 committed Aug 25, 2024
1 parent b1c1090 commit f93735b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/views/Observer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
<div class="heading-bar-container">
<div class="heading-bar">{{ userStatus }}</div>
</div>
<div class="tile no-padding position-relative">
</div>
<div class="tile">
</div>
<div class="tile tile-wide">
<div class="map-container" id="MapContainer">
<template v-if="trackNodes.length > 0">
Expand Down Expand Up @@ -105,16 +101,12 @@ export default defineComponent({
userStatus.value = data ? "Position found" : "Position not found";
if (data) {
if (currentTrackNodeId.value) {
if (currentTrackNodeId.value && !visitedTrackNodeIds.value.includes(currentTrackNodeId.value)) {
visitedTrackNodeIds.value.push(currentTrackNodeId.value);
}
currentTrackNodeId.value = data.trackNodeId;
console.log('TrackPositionPictureMatched', data);
setTimeout(() => {
currentTrackNodeId.value = null;
}, 2000);
}
});
Expand Down

0 comments on commit f93735b

Please sign in to comment.