forked from verdnatura/salix-front
mini fix in travel termograph create
This commit is contained in:
parent
f0778daaa6
commit
26a1b29070
|
@ -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)"
|
||||
>
|
||||
<QTooltip>{{ t('Edit file') }}</QTooltip>
|
||||
</QIcon>
|
||||
|
|
Loading…
Reference in New Issue