FIX: Categories default page was broken
This commit is contained in:
parent
4e251eaf08
commit
ae38a78bb6
|
@ -17,9 +17,11 @@ class RouteNode {
|
|||
this.childrenByName = {};
|
||||
this.paths = {};
|
||||
|
||||
if (opts.path) {
|
||||
this.paths[opts.path] = true;
|
||||
if (!opts.path) {
|
||||
opts.path = name;
|
||||
}
|
||||
|
||||
this.paths[opts.path] = true;
|
||||
}
|
||||
|
||||
route(name, opts, fn) {
|
||||
|
|
Loading…
Reference in New Issue