Fixed displaying columns that arent defined

This commit is contained in:
adro 2023-03-12 16:40:33 +01:00
parent 71687240c7
commit 6e0a716284

View file

@ -45,7 +45,7 @@ function toggleSorting(columnName: string) {
<tbody> <tbody>
<!-- eslint-disable-next-line vue/require-v-for-key --> <!-- eslint-disable-next-line vue/require-v-for-key -->
<tr v-for="row of displayData"> <tr v-for="row of displayData">
<td v-for="cell in row" :key="cell" v-text="cell"/> <td v-for="[column] in Object.entries(columns ?? {})" :key="column" v-text="row[column]"/>
</tr> </tr>
</tbody> </tbody>
</table> </table>