update normalizeHashQuery method
This commit is contained in:
parent
d7ef772181
commit
fdb37b15d2
1 changed files with 6 additions and 0 deletions
|
@ -1085,6 +1085,12 @@ pandora.normalizeHashQuery = function(state) {
|
|||
newState.hash.query = newState.hash.query.filter(function(condition) {
|
||||
return !Ox.contains(removeKeys, condition.key);
|
||||
});
|
||||
if (Ox.isEmpty(newState.hash.query)) {
|
||||
delete newState.hash.query;
|
||||
}
|
||||
}
|
||||
if (Ox.isEmpty(newState.hash)) {
|
||||
delete newState.hash;
|
||||
}
|
||||
return newState;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue