0
0
Fork 0

fix: refs #6938 id filter

This commit is contained in:
Jorge Penadés 2024-04-15 13:28:10 +02:00
parent 68069ba9c6
commit 1e77e82784
1 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ import CardSummary from 'components/ui/CardSummary.vue';
import VnUserLink from 'src/components/ui/VnUserLink.vue';
import VnTitle from 'src/components/common/VnTitle.vue';
const {params} = useRoute();
const { params } = useRoute();
const { t } = useI18n();
const $props = defineProps({
@ -27,11 +27,11 @@ onMounted(async () => {
workerUrl.value = (await getUrl('')) + `worker/${entityId.value}/`;
});
const filter = {where: {id: params.id}};
const filter = { where: { id: entityId.value } };
</script>
<template>
<CardSummary ref="summary" :url="`Workers/summary`" :filter="filter" >
<CardSummary ref="summary" :url="`Workers/summary`" :filter="filter">
<template #header="{ entity }">
<div>{{ entity.id }} - {{ entity.firstName }} {{ entity.lastName }}</div>
</template>