There was an error while loading. Please reload this page.
1 parent b3553df commit 3fd6974Copy full SHA for 3fd6974
src/utils/getAttachedChildren.ts
@@ -6,6 +6,10 @@ export default (children: any) => {
6
| Separate the trailing (not first) children from the children array
7
*/
8
9
+ if (childrenArray.length <= 1) {
10
+ return childrenArray;
11
+ }
12
+
13
const trailingChildren = childrenArray.slice(1);
14
trailingChildren.pop();
15
const marginProp: object = {
0 commit comments