From 26a1b290704e50b3c4c8705545d258a847ea93a8 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 30 Jan 2024 22:12:53 -0300 Subject: [PATCH] mini fix in travel termograph create --- src/pages/Travel/Card/TravelThermographs.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') }}