|
|
@ -72,14 +72,14 @@ const keysToQuery = keys =>
|
|
|
|
|
|
|
|
|
|
|
|
export const getQueryStringState = query => {
|
|
|
|
export const getQueryStringState = query => {
|
|
|
|
if (query.state) {
|
|
|
|
if (query.state) {
|
|
|
|
return deserializeState(query.state)
|
|
|
|
return deserializeState(query.state)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
const state = mapper.map(mappings, query)
|
|
|
|
const state = mapper.map(mappings, query)
|
|
|
|
deserializeCode(state)
|
|
|
|
deserializeCode(state)
|
|
|
|
|
|
|
|
|
|
|
|
Object.keys(state).forEach(key => {
|
|
|
|
Object.keys(state).forEach(key => {
|
|
|
|
if (state[key] === '') state[key] = undefined
|
|
|
|
if (state[key] === '') state[key] = undefined
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
return state
|
|
|
|
return state
|
|
|
|
}
|
|
|
|
}
|
|
|
|