PERF: Remove an unncessary query when check for dark mode.

PERF: Remove an unncessary query when check for dark mode.

diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 372df31..33eeba7 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -473,6 +473,7 @@ module ApplicationHelper
   end
 
   def dark_color_scheme?
+    return false if scheme_id.blank?
     ColorScheme.find_by_id(scheme_id)&.is_dark?
   end
 

GitHub sha: 4994b0ed