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