DEV: removes unecessary casting (#9982)
This commit is contained in:
parent
de29b4a511
commit
a23d31e4d6
|
@ -52,9 +52,7 @@ function findTopicList(store, tracking, filter, filterParams, extras) {
|
|||
// Clean up any string parameters that might slip through
|
||||
filterParams = filterParams || {};
|
||||
Object.keys(filterParams).forEach(k => {
|
||||
let val = filterParams[k];
|
||||
if (val === "false") val = false;
|
||||
if (val === "true") val = true;
|
||||
const val = filterParams[k];
|
||||
if (val === "undefined" || val === "null") {
|
||||
filterParams[k] = null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue