fix: delete wrong row
This commit is contained in:
parent
eeaaa0cf9f
commit
95a0b6e3a8
1 changed files with 4 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue