DEV: removes unecessary casting (#9982)

DEV: removes unecessary casting (#9982)

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 786e9d5..f623bf0 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;
       }

GitHub sha: a23d31e4

1 Like

This commit appears in #9982 which was merged by jjaffeux.