diff --git a/dashboard/src/components/cohortPanel.js b/dashboard/src/components/cohortPanel.js index f59e0874..d966a869 100644 --- a/dashboard/src/components/cohortPanel.js +++ b/dashboard/src/components/cohortPanel.js @@ -72,6 +72,7 @@ function CohortPanel() { attr.forEach((e, i) => { attrDict[e] = metadataColorList[i + 1] }) + if(data.length > 0) data.forEach(e => { if (e['attr']) { metaColorData[e['id']] = attrDict[e['attr']] @@ -280,7 +281,7 @@ function CohortPanel() {
Attributes:
{metadataColorList.map((value, index) => -
+
@@ -355,7 +356,7 @@ function CohortPanel() {
{idData.map((value, index) => -