We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5929af4 commit 78ea1f4Copy full SHA for 78ea1f4
src/diagramElements/Section.tsx
@@ -26,7 +26,7 @@ export default function Section(props: SectionProps) {
26
// If we're creating a section containing subsections, we don't need to create one.
27
if (children.find((el) => el.type === Subsection)) {
28
return Children.map(children, (child) =>
29
- cloneElement(child, Object.assign({ sectionCol: col }, props, child.props)),
+ cloneElement(child, { sectionCol: col, ...props, ...child.props }),
30
);
31
}
32
0 commit comments