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