DEV: Fix stylesheet watcher (#16635)

This commit is contained in:
Penar Musaraj
2022-05-04 11:58:52 -04:00
committed by GitHub
parent 2d143ec2fb
commit 64f03a7d05

View File

@ -93,7 +93,7 @@ module Stylesheet
end end
def core_assets_refresh(target) def core_assets_refresh(target)
if target.match(/wcag|color_definitions/) if target&.match(/wcag|color_definitions/)
Stylesheet::Manager.clear_color_scheme_cache! Stylesheet::Manager.clear_color_scheme_cache!
return return
end end