Remove pointless map
This commit is contained in:
parent
4425c59929
commit
92e4422e89
|
@ -53,12 +53,7 @@
|
||||||
const attachChildren = (rootComponent, map) => {
|
const attachChildren = (rootComponent, map) => {
|
||||||
// Transform map into children array
|
// Transform map into children array
|
||||||
let id = rootComponent._id
|
let id = rootComponent._id
|
||||||
const children = Object.values(map[id] || {}).map(
|
const children = Object.values(map[id] || {})
|
||||||
({ order, instance }) => ({
|
|
||||||
order,
|
|
||||||
instance,
|
|
||||||
})
|
|
||||||
)
|
|
||||||
if (!children.length) {
|
if (!children.length) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue