Skip to content

Commit

Permalink
Grid: handle string and false cols; fix #39
Browse files Browse the repository at this point in the history
  • Loading branch information
vrimar committed Aug 20, 2020
1 parent bb2801c commit 0b18134
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/grid/Grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export class Grid implements m.Component<IGridAttrs> {
return children.map((col: m.Vnode<IColAttrs>) => {
if (col == null || col.tag === '#') return;

if (typeof (col) !== 'object')
return col;

if (col.tag === '[') {
return this.renderCols(col.children as m.ChildArray, gutter);
}
Expand Down

0 comments on commit 0b18134

Please sign in to comment.