add no_subcategories query param in url only if its true (#7439)

add no_subcategories query param in url only if its true (#7439)

diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb
index 2076d0a..fa2c4a0 100644
--- a/app/controllers/list_controller.rb
+++ b/app/controllers/list_controller.rb
@@ -382,7 +382,9 @@ class ListController < ApplicationController
 
     # hacky columns get special handling
     options[:topic_ids] = param_to_integer_list(:topic_ids)
-    options[:no_subcategories] = options[:no_subcategories] == 'true'
+    if options[:no_subcategories] == 'true'
+      options[:no_subcategories] = true
+    end
 
     options
   end

GitHub sha: 1b1cfd45