Skip to content

Commit

Permalink
fix: check for isArray instead (#1521)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrymatio authored Jun 22, 2023
1 parent 7ab4807 commit 9fdacdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-theme-aio/src/components/Table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const THead = ({ children, ...props }) => {
const Th = ({ children }) => <th className="spectrum-Table-headCell">{children}</th>;

const TBody = ({ children, ...props }) => {
const childrenArr = children.length > 1 ? children : [children];
const childrenArr = Array.isArray(children) ? children : [children];
return (
<tbody
className="spectrum-Table-body"
Expand Down

0 comments on commit 9fdacdb

Please sign in to comment.