Pridana moznost zobrazeni planu v detailu letu

This commit is contained in:
Michal Kváček
2024-07-11 07:26:56 +02:00
parent a8ad8467ce
commit 88a760846c
6 changed files with 44 additions and 11 deletions
@@ -59,7 +59,7 @@ const {airports} = storeToRefs(useAirportsStore());
const {getMarkersFrom} = useFlightPlanUtils();
const usedPointsOfInterest = computed(() => {
const poisInTrackIds = getMarkersFrom(flightPlan.value).filter(m => !!m.pointOfInterestId).map(poi => poi.id);
const poisInTrackIds = getMarkersFrom(flightPlan.value).filter(m => !!m.pointOfInterestId).map(poi => poi.pointOfInterestId);
return pointsOfInterest.value.filter(poi => poisInTrackIds.includes(poi.id))
});