Skip to content

Commit

Permalink
chore: rename...
Browse files Browse the repository at this point in the history
  • Loading branch information
harttle committed Mar 2, 2020
1 parent 016be4b commit a44cc9f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/models/component-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ export class ComponentTree {
const info = this.parser.parseComponent(ComponentClass)
this.nodes.set(ComponentClass, info)

for (let component of Object.values(info.childComponentClasses)) {
if (isComponentLoader(component)) {
component = component.placeholder
for (let childComponentClass of Object.values(info.childComponentClasses)) {
if (isComponentLoader(childComponentClass)) {
childComponentClass = childComponentClass.placeholder
}
if (!component) continue
info.children.push(this.addComponentClass(component))
if (!childComponentClass) continue
info.children.push(this.addComponentClass(childComponentClass))
}
return info
}
Expand Down

0 comments on commit a44cc9f

Please sign in to comment.