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
|
// Clean up any string parameters that might slip through
|
||||||
filterParams = filterParams || {};
|
filterParams = filterParams || {};
|
||||||
Object.keys(filterParams).forEach(k => {
|
Object.keys(filterParams).forEach(k => {
|
||||||
let val = filterParams[k];
|
const val = filterParams[k];
|
||||||
if (val === "false") val = false;
|
|
||||||
if (val === "true") val = true;
|
|
||||||
if (val === "undefined" || val === "null") {
|
if (val === "undefined" || val === "null") {
|
||||||
filterParams[k] = null;
|
filterParams[k] = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue