From fa6fb0d69aa5fc8b489b334ca3557a59575b07ea Mon Sep 17 00:00:00 2001 From: Simon Howe Date: Wed, 23 Mar 2016 10:17:56 +0100 Subject: [PATCH] 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. --- client/app/scripts/utils/color-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app/scripts/utils/color-utils.js b/client/app/scripts/utils/color-utils.js index fb3885b53..e8d2af804 100644 --- a/client/app/scripts/utils/color-utils.js +++ b/client/app/scripts/utils/color-utils.js @@ -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; }