Skip to content

Commit 5f58852

Browse files
committed
fix: pass route registration callback when adding children routes
1 parent 5a6d16e commit 5f58852

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/RouteNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class RouteNode {
3737
throw new Error('RouteNode.add() expects routes to have a name and a path defined.');
3838
}
3939
originalRoute = route;
40-
route = new RouteNode(route.name, route.path, route.children);
40+
route = new RouteNode(route.name, route.path, route.children, cb);
4141
}
4242

4343
let names = route.name.split('.');

0 commit comments

Comments
 (0)