diff --git a/app/serializers/wizard_serializer.rb b/app/serializers/wizard_serializer.rb index 6ffe49a1f93..76990716e21 100644 --- a/app/serializers/wizard_serializer.rb +++ b/app/serializers/wizard_serializer.rb @@ -14,7 +14,7 @@ class WizardSerializer < ApplicationSerializer end def current_color_scheme - color_scheme = Theme.find(SiteSetting.default_theme_id).color_scheme + color_scheme = Theme.where(id: SiteSetting.default_theme_id).first&.color_scheme colors = color_scheme ? color_scheme.colors : ColorScheme.base_colors # The frontend expects the color hexs to start with '#'