diff --git a/browser/src/CopyNumberVariantPage/CNVPopulationsTable.tsx b/browser/src/CopyNumberVariantPage/CNVPopulationsTable.tsx index f4b3ce6e8..01bcb4a45 100644 --- a/browser/src/CopyNumberVariantPage/CNVPopulationsTable.tsx +++ b/browser/src/CopyNumberVariantPage/CNVPopulationsTable.tsx @@ -89,18 +89,21 @@ type CNVPopulationsTableState = any type CNVPopulationsTableProps = OwnPopulationsTableProps & typeof CNVPopulationsTable.defaultProps export class CNVPopulationsTable extends Component< - CNVPopulationsTableProps & { variant: CopyNumberVariant}, + CNVPopulationsTableProps & { variant: CopyNumberVariant }, CNVPopulationsTableState > { static defaultProps = { columnLabels: {}, initiallyExpandRows: false, - variant: {} + variant: {}, } - constructor(props: CNVPopulationsTableProps ) { + constructor(props: CNVPopulationsTableProps) { super(props) + // If/when we change this to a functional component, we can replace the + // following sorting logic and some other associated code by employing + // useTableSort. this.state = { sortBy: 'sf', sortAscending: false, diff --git a/browser/src/MitochondrialVariantPage/MitochondrialVariantHaplogroupFrequenciesTable.tsx b/browser/src/MitochondrialVariantPage/MitochondrialVariantHaplogroupFrequenciesTable.tsx index 85a56f609..8c82a93b1 100644 --- a/browser/src/MitochondrialVariantPage/MitochondrialVariantHaplogroupFrequenciesTable.tsx +++ b/browser/src/MitochondrialVariantPage/MitochondrialVariantHaplogroupFrequenciesTable.tsx @@ -51,6 +51,9 @@ class MitochondrialVariantHaplogroupFrequenciesTable extends Component ({ sortBy, diff --git a/browser/src/VariantPage/PopulationsTable.tsx b/browser/src/VariantPage/PopulationsTable.tsx index 479a66818..f5835c0d5 100644 --- a/browser/src/VariantPage/PopulationsTable.tsx +++ b/browser/src/VariantPage/PopulationsTable.tsx @@ -117,6 +117,9 @@ export class PopulationsTable extends Component