Skip to content

Commit b875cbb

Browse files
committed
Minor fix to show Demographics tab under tha cohort generation results (for cohorts generated with demographics checkbox enabled)
1 parent c3b52d1 commit b875cbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/pages/cohort-definitions/cohort-definition-manager.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ define(['jquery', 'knockout', 'text!./cohort-definition-manager.html',
665665
source.recordCount(commaFormatted(info.recordCount));
666666
source.failMessage(info.failMessage);
667667
source.ccGenerateId(info.ccGenerateId);
668-
source.viewDemographic(info.isChooseDemographic);
668+
source.viewDemographic(info.isDemographic);
669669
}
670670
}
671671
});
@@ -1286,7 +1286,7 @@ define(['jquery', 'knockout', 'text!./cohort-definition-manager.html',
12861286
}
12871287
cdsi.failMessage = ko.observable(sourceInfo.failMessage);
12881288
cdsi.createdBy = ko.observable(sourceInfo.createdBy);
1289-
cdsi.viewDemographic = ko.observable(sourceInfo?.viewDemographic || sourceInfo.isChooseDemographic || false);
1289+
cdsi.viewDemographic = ko.observable(sourceInfo?.viewDemographic || sourceInfo.isDemographic || false);
12901290
cdsi.tooltipDemographic = ko.observable(sourceInfo?.tooltipDemographic || null);
12911291
cdsi.ccGenerateId = ko.observable(sourceInfo.ccGenerateId);
12921292
} else {

0 commit comments

Comments
 (0)