Fix nacitani spatnych dat do mapy u udalosti

This commit is contained in:
Michal Kváček
2024-02-29 08:19:24 +01:00
parent 7a45a0133e
commit f0a4c439dc
8 changed files with 59 additions and 56 deletions
+5 -5
View File
@@ -2,12 +2,12 @@
import MapWithMarkers from "components/map/MapWithMarkers.vue";
import {ref} from "vue";
import {useEventsStore} from "stores/Events";
import {minutesToHumanReadable} from "../../composables/datetimeUtils";
import {pluralize} from "../../composables/utils";
import {minutesToHumanReadable} from "src/composables/datetimeUtils";
import {pluralize} from "src/composables/utils";
const props = defineProps({
event: {
type: Object,
eventId: {
type: Number,
required: true
},
onlyPublic: {
@@ -21,7 +21,7 @@ const totalTime = ref(0);
const totalFlights = ref(0);
useEventsStore().fetchFlightsTracks({
eventId: props.event.id,
eventId: props.eventId,
onlyPublic: props.onlyPublic
}).then((data) => {
if (!data.flights) return;