Fix key doubling error in ReportTable.vue

- Co-Authored-By: mattwr18 <mattwr18@gmail.com>
This commit is contained in:
Wolfgang Huß 2020-02-20 10:23:24 +01:00
parent 3421afe4e0
commit a84d78e3ee

View File

@ -24,8 +24,9 @@
</tr>
</thead>
<template v-for="report in reports">
<!-- should be ':key="report.resource.id"' for having one element for every resource, but this crashes at the moment, because the 'reports' query returns multiple reports on the same resource! I will create an issue -->
<report-row
:key="report.resource.id"
:key="report.id"
:report="report"
@confirm-report="$emit('confirm', report)"
/>