1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

fixes #307; table should be simplyfied (#270)

This commit is contained in:
irismarie 2021-03-25 17:22:54 +01:00
parent 1fe9663373
commit 468b4c66f8

View file

@ -290,7 +290,10 @@ class CustomTable extends Component {
const row = [];
for (let child of props.children) {
row.push(CustomTable.addCell(data, index, child));
// check whether empty <></> object has been given
if (Object.keys(child.props).length != 0) {
row.push(CustomTable.addCell(data, index, child));
}
}
return row;