From bd887665b8dd38e2c309edb3bf0979e72cc21217 Mon Sep 17 00:00:00 2001 From: Monica Kozbial Date: Mon, 29 Jun 2020 10:47:24 -0700 Subject: [PATCH] Handle undefined colour (#3997) --- core/toolbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/toolbox.js b/core/toolbox.js index 2499fa526..4e2f79904 100644 --- a/core/toolbox.js +++ b/core/toolbox.js @@ -588,7 +588,7 @@ Blockly.Toolbox.prototype.setColour_ = function(colourValue, childOut, // Decode the colour for any potential message references // (eg. `%{BKY_MATH_HUE}`). var colour = Blockly.utils.replaceMessageReferences(colourValue); - if (colour === null || colour === '') { + if (colour == null || colour === '') { // No attribute. No colour. childOut.hexColour = ''; } else {