FIX: Do not output empty style tags for components (#12229)

This commit is contained in:
Penar Musaraj
2021-03-01 09:14:25 -05:00
committed by GitHub
parent 3b7c2328fb
commit cf0192018e
3 changed files with 21 additions and 1 deletions

View File

@ -615,6 +615,11 @@ class Theme < ActiveRecord::Base
contents
end
def has_scss(target)
name = target == :embedded_theme ? :embedded_scss : :scss
list_baked_fields(target, name).count > 0
end
private
def to_scss_variable(name, value)