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 9ef78f7 commit 157388dCopy full SHA for 157388d
addon/instance-initializers/route-styles.js
@@ -18,8 +18,11 @@ export function initialize(appInstance) {
18
});
19
}
20
21
-function nestedRouteNames(route, routeNames = []) {
22
- routeNames.push(route.name);
+function nestedRouteNames(route = {}, routeNames = []) {
+ if (route.name) {
23
+ routeNames.push(route.name);
24
+ }
25
+
26
if (route.parent) {
27
return nestedRouteNames(route.parent, routeNames);
28
0 commit comments