DEV: removes unecessary casting (#9982)

This commit is contained in:
Joffrey JAFFEUX
2020-06-04 19:07:34 +02:00
committed by GitHub
parent de29b4a511
commit a23d31e4d6

View File

@@ -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;
}