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 81ec7bf..0a1d620 100644 --- a/packages/noodl-viewer-react/src/components/visual/Columns/Columns.tsx +++ b/packages/noodl-viewer-react/src/components/visual/Columns/Columns.tsx @@ -117,7 +117,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);