Skip to content

Commit

Permalink
fix: 3533 erroneously labelled "Population" (#3564)
Browse files Browse the repository at this point in the history
Rename Population to Counties

Closes #3533
  • Loading branch information
connoratrug authored Mar 28, 2024
1 parent dd8bdef commit 05a3536
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/nuxt3-ssr/components/SubCohortDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ if (subcohort?.comorbidity) {
if (subcohort?.countries) {
items.push({
label: "Population",
label: "Countries",
type: "ONTOLOGY",
content: subcohort.countries,
});
Expand Down
2 changes: 1 addition & 1 deletion apps/nuxt3-ssr/components/content/cohort/GeneralDesign.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function setData() {
content: filters.startEndYear(cohort?.startYear, cohort?.endYear),
},
{
label: "Population",
label: "Countries",
content: cohort?.countries
? [...cohort?.countries]
.sort((a, b) => b.order - a.order)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ if (subcohort?.inclusionStart || subcohort?.inclusionEnd) {
if (subcohort?.countries) {
items.push({
label: "Population",
label: "Countries",
content: renderList(
subcohort.countries.sort((a, b) => b.order - a.order),
toName
Expand Down

0 comments on commit 05a3536

Please sign in to comment.