fix(router): make stringify handle nulls

This commit is contained in:
vsavkin 2016-06-08 22:44:47 -07:00
parent 10113b63b5
commit 2fef30f619
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ function update(node: TreeNode<UrlSegment>| null, commands: any[]): TreeNode<Url
function stringify(params: {[key: string]: any}): {[key: string]: string} { function stringify(params: {[key: string]: any}): {[key: string]: string} {
const res = {}; const res = {};
forEach(params, (v, k) => res[k] = v.toString()); forEach(params, (v, k) => res[k] = `${v}`);
return res; return res;
} }