Fix zorbazovani udalosti

This commit is contained in:
Michal Kváček
2024-03-14 06:27:30 +01:00
parent c0cfd7115c
commit 275c48986e
4 changed files with 11 additions and 6 deletions
+6 -1
View File
@@ -8,7 +8,11 @@ import {pluralize} from "src/composables/utils";
const props = defineProps({
eventId: {
type: Number,
required: true
required: false
},
eventUrlSlug: {
type: String,
required: false,
},
onlyPublic: {
type: Boolean,
@@ -22,6 +26,7 @@ const totalFlights = ref(0);
useEventsStore().fetchFlightsTracks({
eventId: props.eventId,
eventUrlSlug: props.eventUrlSlug,
onlyPublic: props.onlyPublic
}).then((data) => {
if (!data.flights) return;