fix: delete wrong row

This commit is contained in:
Methapon Metanipat 2024-10-18 14:35:56 +07:00
parent eeaaa0cf9f
commit 95a0b6e3a8

View file

@ -218,9 +218,9 @@ watch(
<div class="column"> <div class="column">
<div class="full-width"> <div class="full-width">
<section <section
v-for="(item, i) in groupByServiceId(rows) || [ v-for="(item, i) in groupByServiceId(
{ title: '', product: [] }, rows.map((v, i) => Object.assign(v, { i })),
]" ) || [{ title: '', product: [] }]"
:key="i" :key="i"
class="q-pb-md" class="q-pb-md"
> >
@ -380,7 +380,7 @@ watch(
/> />
<DeleteButton <DeleteButton
iconOnly iconOnly
@click="$emit('delete', props.rowIndex)" @click="$emit('delete', props.row.i)"
/> />
</div> </div>
</q-td> </q-td>