Skip to content

Commit

Permalink
fix: allow undefined color in toolbox definition (google#5801)
Browse files Browse the repository at this point in the history
  • Loading branch information
maribethb authored Dec 9, 2021
1 parent 7784eac commit 98f9470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/toolbox/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 98f9470

Please sign in to comment.