From 71e9410ff547cabd4153d0954a35b8494ce38530 Mon Sep 17 00:00:00 2001 From: rmanaem Date: Thu, 26 Oct 2023 13:40:32 -0400 Subject: [PATCH] Refactored getJSONOutput getter --- store/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/store/index.js b/store/index.js index c9c87dd2..10e0e463 100644 --- a/store/index.js +++ b/store/index.js @@ -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", @@ -441,7 +444,7 @@ export const getters = { columnOutput = p_getters.getContinuousJsonOutput(columnName); break; - default: + case "participantID": columnOutput = { "Description": "A participant ID", Annotations: {