mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 11:11:13 +00:00
Treat empty text and no text the same for color
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user