fix(router): make stringify handle nulls
This commit is contained in:
parent
10113b63b5
commit
2fef30f619
|
@ -199,7 +199,7 @@ function update(node: TreeNode<UrlSegment>| null, commands: any[]): TreeNode<Url
|
|||
|
||||
function stringify(params: {[key: string]: any}): {[key: string]: string} {
|
||||
const res = {};
|
||||
forEach(params, (v, k) => res[k] = v.toString());
|
||||
forEach(params, (v, k) => res[k] = `${v}`);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue