Treat empty text and no text the same for color

This commit is contained in:
David Kaltschmidt
2015-11-26 18:47:07 +01:00
parent 37b71487cd
commit 72fb2f793c

View File

@@ -45,7 +45,7 @@ const NodeColorMixin = {
return colors(text, secondText);
},
getNodeColorDark: function(text, secondText) {
if (text === undefined) {
if (!text) {
return PSEUDO_COLOR;
}
const color = d3.rgb(colors(text, secondText));