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:
Simon Howe
2016-03-23 10:17:56 +01:00
parent 88cd85f61c
commit fa6fb0d69a

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