1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-23 06:47:40 +01:00

fix: 🐛 Righe inserite come undefined

This commit is contained in:
Maicol Battistini 2021-10-07 10:49:28 +02:00
parent b1a0a01f0b
commit 39c3a0d152
No known key found for this signature in database
GPG Key ID: 4FDB0F87CDB1D34A

View File

@ -119,11 +119,17 @@ export default class RecordsPage extends Page {
</TableRow>);
}
return this.rows.map((row, index) => (
<TableRow key={index}>
{row.map((cell, index_) => <TableCell key={index_}>{cell}</TableCell>)}
</TableRow>
));
return this.rows.map((row, index) => {
if (typeof row === 'undefined') {
return [];
}
return (
<TableRow key={index}>
{row.map((cell, index_) => <TableCell key={index_}>{cell}</TableCell>)}
</TableRow>
);
});
}
recordDialog() {