diff --git a/src/pages/profile/aircraft/AircraftDetailPage.vue b/src/pages/profile/aircraft/AircraftDetailPage.vue index 9804849..8648833 100644 --- a/src/pages/profile/aircraft/AircraftDetailPage.vue +++ b/src/pages/profile/aircraft/AircraftDetailPage.vue @@ -60,10 +60,10 @@ const togglePublicVisibility = (variables) => toggleVisibility({ }); const {isQueryRunning: areFlightsLoading, totalItemsCount, flights} = storeToRefs(useFlightsStore()); -const {filters, loadPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch}); +const {filters, loadPage, loadFirstPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch}); filters.value = {aircraftId: aircraftId}; onMounted(() => { - loadPage(false); + loadFirstPage(); }) diff --git a/src/pages/profile/copilot/CopilotDetailPage.vue b/src/pages/profile/copilot/CopilotDetailPage.vue index 016dd95..1b4843d 100644 --- a/src/pages/profile/copilot/CopilotDetailPage.vue +++ b/src/pages/profile/copilot/CopilotDetailPage.vue @@ -40,10 +40,10 @@ const togglePublicVisibility = (variables) => toggleVisibility({ $q, store: useCopilotsStore(), object: copilot.value, variables }); -const {filters, loadPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch}); +const {filters, loadPage, loadFirstPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch}); filters.value = {copilotId: copilotId}; onMounted(() => { - loadPage(false); + loadFirstPage(); }); const {isQueryRunning: areFlightsLoading, totalItemsCount, flights} = storeToRefs(useFlightsStore()); diff --git a/src/pages/profile/event/EventDetailPage.vue b/src/pages/profile/event/EventDetailPage.vue index ebc2f55..ef2b88f 100644 --- a/src/pages/profile/event/EventDetailPage.vue +++ b/src/pages/profile/event/EventDetailPage.vue @@ -26,7 +26,7 @@ onMounted(() => { {label: event.value.name} ]) }); - loadPage(false); + loadFirstPage(); }) @@ -37,7 +37,7 @@ const togglePublicVisibility = (variables) => toggleVisibility({ const {isQueryRunning, event} = storeToRefs(useEventsStore()); -const {filters, loadPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch}); +const {filters, loadPage, loadFirstPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch}); filters.value = {eventId: eventId} const {isQueryRunning: areFlightsLoading, totalItemsCount, flights} = storeToRefs(useFlightsStore()); diff --git a/src/pages/profile/poi/PointOfInterestDetailPage.vue b/src/pages/profile/poi/PointOfInterestDetailPage.vue index 6985b4d..13b821e 100644 --- a/src/pages/profile/poi/PointOfInterestDetailPage.vue +++ b/src/pages/profile/poi/PointOfInterestDetailPage.vue @@ -38,9 +38,9 @@ const togglePublicVisibility = (variables) => toggleVisibility({ $q, store: usePointsOfInterestStore(), object: pointOfInterest.value, variables }); -const {filters, loadPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch}); +const {filters, loadPage, loadFirstPage, paginationLimit} = usePagination({fetchFunction: useFlightsStore().fetch}); filters.value = {pointOfInterestId: poiId}; -loadPage(false); +loadFirstPage(); const {isQueryRunning: areFlightsLoading, totalItemsCount, flights} = storeToRefs(useFlightsStore()); const {isQueryRunning, pointOfInterest} = storeToRefs(usePointsOfInterestStore());