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:
parent
b1a0a01f0b
commit
39c3a0d152
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user