File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export function resolveQuery (
38
38
return parsedQuery
39
39
}
40
40
41
- const castQueryParamValue = value => ( value == null ? value : '' + value )
41
+ const castQueryParamValue = value => ( value == null ? value : String ( value ) )
42
42
43
43
function parseQuery ( query : string ) : Dictionary < string > {
44
44
const res = { }
Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ function isObjectEqual (a = {}, b = {}): boolean {
104
104
return aKeys . every ( key => {
105
105
const aVal = a [ key ]
106
106
const bVal = b [ key ]
107
+ // query values can be null and undefined
108
+ if ( aVal == null || bVal == null ) return aVal === bVal
107
109
// check nested equality
108
110
if ( typeof aVal === 'object' && typeof bVal === 'object' ) {
109
111
return isObjectEqual ( aVal , bVal )
You can’t perform that action at this time.
0 commit comments