Skip to content

Commit 7633e08

Browse files
committed
- Fix any types
- Code lint
1 parent cb9d18b commit 7633e08

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

app/views/ReportView/components/GenomicSummary/types.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { RecordDefaults } from '@/common';
2-
import { VariantType } from '@/common';
1+
import { VariantType, RecordDefaults } from '@/common';
32

43
type GeneVariantType = {
54
geneVariant: string;

app/views/ReportView/components/StructuralVariants/columnDefs.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { actionsColDef } from '@/utils/actionsColumnDef';
2+
import type { ColDef } from '@ag-grid-community/core';
23

34
const createGeneRelatedValueGetter = (field, delimiter = ' / ', subfield = '') => ({ data }) => {
45
try {
@@ -19,7 +20,7 @@ const createGeneRelatedValueGetter = (field, delimiter = ' / ', subfield = '') =
1920
}
2021
};
2122

22-
const columnDefs = [{
23+
const columnDefs: ColDef[] = [{
2324
headerName: 'Genes 5`::3`',
2425
colId: 'genes',
2526
cellRenderer: 'GeneCellRenderer',

app/views/ReportView/components/StructuralVariants/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ const StructuralVariants = ({
240240
{Object.entries(groupedSvs).map(([key, value]) => (
241241
<DataTable
242242
key={key}
243-
columnDefs={columnDefs as any}
243+
columnDefs={columnDefs}
244244
rowData={value}
245245
titleText={TITLE_MAP[key]}
246246
visibleColumns={visibleCols}

0 commit comments

Comments
 (0)