mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
Dropdown children now work with React.Fragment
This commit is contained in:
parent
db9925165a
commit
61b4c6e78d
@ -224,7 +224,9 @@ class Dropdown extends PureComponent {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (Array.isArray(child)) {
|
||||
if (child.type === React.Fragment) {
|
||||
newChildren = [...newChildren, ...this._getFlattenedChildren(child.props.children)];
|
||||
} else if (Array.isArray(child)) {
|
||||
newChildren = [...newChildren, ...this._getFlattenedChildren(child)];
|
||||
} else {
|
||||
newChildren.push(child);
|
||||
|
Loading…
Reference in New Issue
Block a user