fix(ivy): scan simple children routes with no infinite recursion (#28370)

PR Close #28370
This commit is contained in:
cexbrayat
2019-01-25 17:10:05 +01:00
committed by Jason Aden
parent 76cedb8bf3
commit 66ce3b2f2f
2 changed files with 49 additions and 1 deletions

View File

@ -111,7 +111,7 @@ function scanForLazyRoutes(routes: ResolvedValue[]): string[] {
} else if (route.has('children')) {
const children = route.get('children');
if (Array.isArray(children)) {
recursivelyScanRoutes(routes);
recursivelyScanRoutes(children);
}
}
}