From 5a85cebcaf842fbb102858a5eb2b13b1ec3be451 Mon Sep 17 00:00:00 2001 From: Richard Beattie Date: Thu, 31 Mar 2022 21:29:08 -0400 Subject: [PATCH] Support variables in TableCell Currently useing variables in children of `` results in an error (`node.style` is not defined) e.g. ```javascript {variable} ``` --- src/TableCell.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/TableCell.tsx b/src/TableCell.tsx index 2bee8d7..7ec7a84 100644 --- a/src/TableCell.tsx +++ b/src/TableCell.tsx @@ -71,6 +71,10 @@ export class TableCell extends React.PureComponent { content = ( {this.props.children.toString()} ); + } elseif (Array.isArray(this.props.children) { + content = ( + {this.props.children.join('')} + ); } else { content = this.props.children; }