diff --git a/app/assets/javascripts/discourse/app/routes/build-topic-route.js b/app/assets/javascripts/discourse/app/routes/build-topic-route.js index 786e9d557f9..f623bf0b5c3 100644 --- a/app/assets/javascripts/discourse/app/routes/build-topic-route.js +++ b/app/assets/javascripts/discourse/app/routes/build-topic-route.js @@ -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; }