mirror of
https://github.com/google/blockly.git
synced 2026-01-13 20:07:08 +01:00
fix: allow undefined color in toolbox definition (#5801)
This commit is contained in:
committed by
GitHub
parent
7784eac9be
commit
98f94707ac
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user