From 01adfa33237505031113c6593c2334d650bb25bc Mon Sep 17 00:00:00 2001
From: stevereis <stevereis93@gmail.com>
Date: Thu, 20 Oct 2022 10:57:26 +0200
Subject: [PATCH] fix(datashield): Issue with nested labels in descriptive
stats
---
.../datashield/handlers/algorithms/descriptive.handler.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/api/src/engine/connectors/datashield/handlers/algorithms/descriptive.handler.ts b/api/src/engine/connectors/datashield/handlers/algorithms/descriptive.handler.ts
index f0f0174..96a19e8 100644
--- a/api/src/engine/connectors/datashield/handlers/algorithms/descriptive.handler.ts
+++ b/api/src/engine/connectors/datashield/handlers/algorithms/descriptive.handler.ts
@@ -42,11 +42,11 @@ const transformToDescriptiveStats = jsonata(`
$.'1' ? {
"name": '',
"xAxis": {
- "label": $clearLabel($.xlab),
+ "label": $clearLabel($.xlab[0]),
"categories": $.x
},
"yAxis": {
- "label": $clearLabel($.ylab),
+ "label": $clearLabel($.ylab[0]),
"categories": $.y
},
"matrix": $transposeMat($.'1')
--
GitLab