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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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