fix(router): url serializer should handle segments without primary children
This commit is contained in:
@ -74,6 +74,8 @@ export class UrlSegment {
|
||||
forEach(children, (v: any, k: any) => v.parent = this);
|
||||
}
|
||||
|
||||
hasChildren(): boolean { return Object.keys(this.children).length > 0; }
|
||||
|
||||
toString(): string { return serializePaths(this); }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user