diff --git a/src/pages/Travel/Card/TravelThermographs.vue b/src/pages/Travel/Card/TravelThermographs.vue index b78c93334..9773313e1 100644 --- a/src/pages/Travel/Card/TravelThermographs.vue +++ b/src/pages/Travel/Card/TravelThermographs.vue @@ -20,9 +20,10 @@ const router = useRouter(); const { t } = useI18n(); const { notify } = useNotify(); const { store: travelStore, fetch: fetchTravel } = useArrayData('SingleTravel', { - url: 'Travel', + url: 'Travels', limit: 1, filter: { + fields: ['id', 'agencyModeFk'], where: { id: route.params.id }, }, // Si quisieras guardar en la URL, podrĂ­as usar searchUrl: 'travelSearch' @@ -152,7 +153,7 @@ const removeThermograph = async (id) => { notify(t('Thermograph removed'), 'positive'); }; onMounted(() => { - fetchTravel(); + fetchTravel({}); });