mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 17:40:43 +08:00
FIX: Do not output empty style tags for components (#12229)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user