+
{}
diff --git a/dashboard/src/components/individualPanel.js b/dashboard/src/components/individualPanel.js
index ac8a40fa..3761ddfb 100644
--- a/dashboard/src/components/individualPanel.js
+++ b/dashboard/src/components/individualPanel.js
@@ -276,6 +276,7 @@ function IndividualPanel() {
if (corrMatrix_args.length === 0) {
corrMatrix_args = meanEmotionsSoft.map(e => e.replace("_mean", ""))
}
+ var sendId = typeof id === 'string' ? id : selectedId
fetch("/updateCorrMatrix", {
method: "POST",
headers: {
@@ -284,7 +285,7 @@ function IndividualPanel() {
body: JSON.stringify({
"corrMatrix_args": corrMatrix_args,
"individual": true,
- "id": id ? id : selectedId
+ "id": sendId
})
}).then(
res => res.json()
@@ -360,7 +361,7 @@ function IndividualPanel() {
step="1" value={timeslotValue} onChange={setTime} list="steplist">
@@ -391,7 +392,7 @@ function IndividualPanel() {
{AUsButton && emotions.map((value, index) =>
-