fix: allow undefined color in toolbox definition (#5801)

This commit is contained in:
Maribeth Bottorff
2021-12-08 18:17:19 -08:00
committed by GitHub
parent 7784eac9be
commit 98f94707ac

View File

@@ -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 {