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 793c4a9 commit 47441a0Copy full SHA for 47441a0
src/components/containers/Panel.js
@@ -90,7 +90,11 @@ export default class Panel extends Component {
90
if (Array.isArray(children)) {
91
children = children.map((child, index) => {
92
if (child.type.displayName.indexOf('Fold') >= 0) {
93
- return cloneElement(child, {...child.props, foldIndex: index, key: index});
+ return cloneElement(child, {
94
+ ...child.props,
95
+ foldIndex: index,
96
+ key: index,
97
+ });
98
}
99
return child;
100
});
0 commit comments