Skip to content

Commit

Permalink
Merge pull request #4768 from alisman/fxPriority
Browse files Browse the repository at this point in the history
Clinical attribute types with priority of zero should not appear by default on study view
  • Loading branch information
alisman authored Nov 7, 2023
2 parents bfd177b + 2357d4f commit e0fdd79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/studyView/StudyViewPageStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7529,7 +7529,11 @@ export class StudyViewPageStore
return attr;
});

// by default we the first 20 charts which have priority greater than 0
// priority zero will be hidden by default, but appear in the add chart menu
// priorty negative
let filterAttributes: ClinicalAttribute[] = queriedAttributes
.filter(attr => (parseInt(attr.priority) || 0) > 0)
.sort(clinicalAttributeComparator)
.slice(0, 20);

Expand Down

0 comments on commit e0fdd79

Please sign in to comment.