diff --git a/packages/noodl-viewer-react/src/components/visual/Columns/Columns.tsx b/packages/noodl-viewer-react/src/components/visual/Columns/Columns.tsx index 3ac6235..5a1429f 100644 --- a/packages/noodl-viewer-react/src/components/visual/Columns/Columns.tsx +++ b/packages/noodl-viewer-react/src/components/visual/Columns/Columns.tsx @@ -115,7 +115,10 @@ export function Columns(props: ColumnsProps) { // ForEachCompoent breaks the layout but is needed to send onMount/onUnmount if (!Array.isArray(props.children)) { - children = [props.children]; + // @ts-expect-error props.children.type is any + if (props.children.type !== ForEachComponent) { + children = [props.children] + } } else { children = props.children.filter((child) => child.type !== ForEachComponent); forEachComponent = props.children.find((child) => child.type === ForEachComponent);