Skip to content

A platform for community discussion. Free, open, simple.

fix theme previewing (#6245)

Osama Sayegh0d45826d22cc
diff --git a/app/controllers/themes_controller.rb b/app/controllers/themes_controller.rb
index 2cc8e284a1a..306badc48aa 100644
--- a/app/controllers/themes_controller.rb
+++ b/app/controllers/themes_controller.rb
@@ -13,7 +13,7 @@ class ThemesController < ::ApplicationController
object = targets.map do |target|
Stylesheet::Manager.stylesheet_data(target, theme_ids).map do |hash|
- return hash unless Rails.env.development?
+ next hash unless Rails.env.development?
dup_hash = hash.dup
dup_hash[:new_href] << (dup_hash[:new_href].include?("?") ? "&" : "?")