From 468b4c66f847089fa0d64936935190d52b4bb94a Mon Sep 17 00:00:00 2001 From: irismarie Date: Thu, 25 Mar 2021 17:22:54 +0100 Subject: [PATCH] fixes #307; table should be simplyfied (#270) --- src/common/table.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/table.js b/src/common/table.js index 8abe5a9..c5edd2e 100644 --- a/src/common/table.js +++ b/src/common/table.js @@ -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;