From dac4e30a42f18e8d305ccad8cc7ed003eb3ed8b5 Mon Sep 17 00:00:00 2001 From: Carla Floricel Date: Tue, 2 Aug 2022 10:48:10 -0400 Subject: [PATCH] solved key prop warnings from cohort and individual panels --- dashboard/src/components/cohortPanel.js | 7 ++++--- dashboard/src/components/individualPanel.js | 17 +++++++++-------- dashboard/src/components/queryPanel.js | 16 ++++++++-------- dashboard/src/components/scatterplot.d3.js | 1 - dashboard/src/components/scatterplot.js | 1 - 5 files changed, 21 insertions(+), 21 deletions(-) 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) => -