mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 10:11:03 +00:00
Fixes the terminal loading when the node doesn't have a rank.
- Safen up the color lookup, so we return a nice brown if we don't have anything else to work with.
This commit is contained in:
@@ -43,7 +43,7 @@ export function getNeutralColor() {
|
||||
return PSEUDO_COLOR;
|
||||
}
|
||||
|
||||
export function getNodeColor(text, secondText, isPseudo = false) {
|
||||
export function getNodeColor(text = '', secondText = '', isPseudo = false) {
|
||||
if (isPseudo) {
|
||||
return PSEUDO_COLOR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user