Skip to content

Commit 9fdacdb

Browse files
authored
fix: check for isArray instead (#1521)
1 parent 7ab4807 commit 9fdacdb

File tree

1 file changed

+1
-1
lines changed
  • packages/gatsby-theme-aio/src/components/Table

1 file changed

+1
-1
lines changed

packages/gatsby-theme-aio/src/components/Table/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const THead = ({ children, ...props }) => {
7676
const Th = ({ children }) => <th className="spectrum-Table-headCell">{children}</th>;
7777

7878
const TBody = ({ children, ...props }) => {
79-
const childrenArr = children.length > 1 ? children : [children];
79+
const childrenArr = Array.isArray(children) ? children : [children];
8080
return (
8181
<tbody
8282
className="spectrum-Table-body"

0 commit comments

Comments
 (0)