Merge pull request #1198 from weaveworks/1195-fix-terminal-when-no-rank

Fixes the terminal loading when the node doesn't have a rank.
This commit is contained in:
Simon
2016-03-24 13:20:09 +01:00

View File

@@ -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;
}