diff --git a/src/pages/Travel/Card/TravelThermographs.vue b/src/pages/Travel/Card/TravelThermographs.vue index a8374086b..79d31c0c5 100644 --- a/src/pages/Travel/Card/TravelThermographs.vue +++ b/src/pages/Travel/Card/TravelThermographs.vue @@ -100,7 +100,7 @@ const openRemoveDialog = async (id) => { }); }; -const redirectToThermographForm = (action, { id = null }) => { +const redirectToThermographForm = (action, id = null) => { const routeDetails = { name: action === 'create' ? 'TravelThermographsCreate' : 'TravelThermographsEdit', }; @@ -162,7 +162,7 @@ const removeThermograph = async (id) => { color="primary" size="sm" class="cursor-pointer" - @click="redirectToThermographForm('edit', row)" + @click="redirectToThermographForm('edit', row.id)" > {{ t('Edit file') }}