diff --git a/biodatacatalyst-ui/src/main/webapp/picsureui/openPicsure/outputPanel.js b/biodatacatalyst-ui/src/main/webapp/picsureui/openPicsure/outputPanel.js index c632072c..53bf4b0b 100644 --- a/biodatacatalyst-ui/src/main/webapp/picsureui/openPicsure/outputPanel.js +++ b/biodatacatalyst-ui/src/main/webapp/picsureui/openPicsure/outputPanel.js @@ -161,7 +161,11 @@ define(["jquery", "underscore", "picSure/settings", "text!openPicsure/outputPane // populate the study consent counts for (var code in studiesInfo) { studiesInfo[code].consents.forEach((x) => { - x.study_matches = response[studiesInfo[code].study_concept + x.short_title + '\\']; + if(!x.consent_group_code) { + x.study_matches = totalPatients; + } else { + x.study_matches = response[studiesInfo[code].study_concept + x.short_title + '\\']; + } }); } outputModel.set("studies",sorted_final);