Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
🐛 1695 alphabetize disease_type/primary_site (#2147)
Browse files Browse the repository at this point in the history
  • Loading branch information
cy authored Oct 2, 2017
1 parent ac2a9ba commit 2c44004
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default compose(
<span>
{project.disease_type.length > 1 &&
<CollapsibleList
data={project.disease_type}
data={project.disease_type.slice(0).sort()}
limit={0}
toggleStyle={{ fontStyle: 'normal' }}
liStyle={{
Expand All @@ -86,7 +86,7 @@ export default compose(
<span>
{project.primary_site.length > 1 &&
<CollapsibleList
data={project.primary_site}
data={project.primary_site.slice(0).sort()}
limit={0}
toggleStyle={{ fontStyle: 'normal' }}
liStyle={{
Expand Down
4 changes: 2 additions & 2 deletions src/packages/@ncigdc/tableModels/projectsTableModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const projectsTableModel = [
<CollapsibleList
liStyle={{ whiteSpace: 'normal', listStyleType: 'disc' }}
toggleStyle={{ fontStyle: 'normal' }}
data={node.disease_type}
data={node.disease_type.slice(0).sort()}
limit={0}
expandText={`${node.disease_type.length} Disease Types`}
collapseText="collapse"
Expand All @@ -117,7 +117,7 @@ const projectsTableModel = [
<CollapsibleList
liStyle={{ whiteSpace: 'normal', listStyleType: 'disc' }}
toggleStyle={{ fontStyle: 'normal' }}
data={node.primary_site}
data={node.primary_site.slice(0).sort()}
limit={0}
expandText={`${node.primary_site.length} Primary Sites`}
collapseText="collapse"
Expand Down

0 comments on commit 2c44004

Please sign in to comment.