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

@@ -83,6 +83,7 @@ class Stylesheet::Manager
if is_theme && !has_theme
next
else
next if builder.theme&.component && !builder.theme&.has_scss(target)
data[:theme_id] = builder.theme.id if has_theme && is_theme
builder.compile unless File.exists?(builder.stylesheet_fullpath)
href = builder.stylesheet_path(current_hostname)