From 64f03a7d05240cc21ed2dc4283e2945bfbf6cd7c Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Wed, 4 May 2022 11:58:52 -0400 Subject: [PATCH] DEV: Fix stylesheet watcher (#16635) --- lib/stylesheet/watcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stylesheet/watcher.rb b/lib/stylesheet/watcher.rb index 3e474f13a33..cd7d11caf0d 100644 --- a/lib/stylesheet/watcher.rb +++ b/lib/stylesheet/watcher.rb @@ -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