From 98f94707acad0315d9de40808dd5cd0bec72e2ab Mon Sep 17 00:00:00 2001 From: Maribeth Bottorff Date: Wed, 8 Dec 2021 18:17:19 -0800 Subject: [PATCH] fix: allow undefined color in toolbox definition (#5801) --- core/toolbox/category.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/toolbox/category.js b/core/toolbox/category.js index 04430653d..286be4011 100644 --- a/core/toolbox/category.js +++ b/core/toolbox/category.js @@ -424,7 +424,7 @@ ToolboxCategory.prototype.parseColour_ = function(colourValue) { // Decode the colour for any potential message references // (eg. `%{BKY_MATH_HUE}`). const colour = parsing.replaceMessageReferences(colourValue); - if (colour === null || colour === '') { + if (colour == null || colour === '') { // No attribute. No colour. return ''; } else {