fix(VnNotes): refs #6336 fix v-for key #310
|
@ -78,8 +78,8 @@ async function insert() {
|
||||||
<TransitionGroup name="list" tag="div" class="column items-center full-width">
|
<TransitionGroup name="list" tag="div" class="column items-center full-width">
|
||||||
<QCard
|
<QCard
|
||||||
class="q-pa-xs q-mb-sm full-width"
|
class="q-pa-xs q-mb-sm full-width"
|
||||||
v-for="note in rows"
|
v-for="(note, index) in rows"
|
||||||
:key="note.id"
|
:key="note.id ?? index"
|
||||||
>
|
>
|
||||||
<QCardSection horizontal>
|
<QCardSection horizontal>
|
||||||
<VnAvatar
|
<VnAvatar
|
||||||
|
|
|
@ -16,7 +16,7 @@ const claimId = computed(() => $props.id || route.params.id);
|
||||||
|
|
||||||
const claimFilter = {
|
const claimFilter = {
|
||||||
where: { claimFk: claimId.value },
|
where: { claimFk: claimId.value },
|
||||||
fields: ['created', 'workerFk', 'text'],
|
fields: ['id', 'created', 'workerFk', 'text'],
|
||||||
include: {
|
include: {
|
||||||
relation: 'worker',
|
relation: 'worker',
|
||||||
scope: {
|
scope: {
|
||||||
|
|
Loading…
Reference in New Issue