Skip to content

Commit

Permalink
[REF] Refactored getJSONOutput getter to handle participantID exp…
Browse files Browse the repository at this point in the history
…licitly (#587)

* Implemented annotation workflow for healthy controls

* Added tests for the healthy control workflow

* Refactored getJSONOutput getter
  • Loading branch information
rmanaem authored Oct 26, 2023
1 parent 9042a6f commit b7455ab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ export const state = () => ({

categories: {

"Subject ID": {},
"Subject ID": {
// Added to be used as a case inside the switch statement of getJSONOutput
componentName: "participantID"
},
"Age": {

componentName: "annot-continuous-values",
Expand Down Expand Up @@ -441,7 +444,7 @@ export const getters = {
columnOutput = p_getters.getContinuousJsonOutput(columnName);
break;

default:
case "participantID":
columnOutput = {
"Description": "A participant ID",
Annotations: {
Expand Down

0 comments on commit b7455ab

Please sign in to comment.