Skip to content
Snippets Groups Projects
Commit 531ec01a authored by Steve Reis's avatar Steve Reis
Browse files

fix: Transformation issue when array instead of single value

parent 851d53e7
No related branches found
No related tags found
No related merge requests found
......@@ -22,12 +22,12 @@ export const transformToExperiment = jsonata(`
"finishedAt": $convDate(finished),
"shared": shared,
"updateAt": $convDate(updated),
"domain": algorithm.parameters[name = "pathology"].value,
"datasets": $split(algorithm.parameters[name = "dataset"].value, ','),
"variables": $split($rp(algorithm.parameters[name = "y"].value), ','),
"coVariables": $toArray($split($rp(algorithm.parameters[name = "x"].value), ',')),
"filterVariables": (algorithm.parameters[name = "filter"].value ~> $strSafe() ~> $match(/\\"id\\":\\"(\w*)\\"/)).groups,
"filter": algorithm.parameters[name = "filter"].value,
"domain": algorithm.parameters[name = "pathology"][0].value,
"datasets": $split(algorithm.parameters[name = "dataset"][0].value, ','),
"variables": $split($rp(algorithm.parameters[name = "y"][0].value), ','),
"coVariables": $toArray($split($rp(algorithm.parameters[name = "x"][0].value), ',')),
"filterVariables": (algorithm.parameters[name = "filter"][0].value ~> $strSafe() ~> $match(/\\"id\\":\\"(\w*)\\"/)).groups,
"filter": algorithm.parameters[name = "filter"][0].value,
"formula": {
"transformations": $formula.single.{
"id": var_name,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment