Fix nacitani spatnych dat do mapy u udalosti
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user