@@ -13,7 +13,6 @@ import sortBy from 'lodash/sortBy';
13
13
14
14
import api , { ApiCallSet } from '@/services/api' ;
15
15
import { formatDate } from '@/utils/date' ;
16
- import useReport from '@/hooks/useReport' ;
17
16
import ConfirmContext from '@/context/ConfirmContext' ;
18
17
import ReadOnlyTextField from '@/components/ReadOnlyTextField' ;
19
18
import DemoDescription from '@/components/DemoDescription' ;
@@ -27,8 +26,8 @@ import TumourSummaryEdit from '@/components/TumourSummaryEdit';
27
26
import {
28
27
TumourSummaryType , MicrobialType , ImmuneType , MutationBurdenType , TmburType , MsiType ,
29
28
} from '@/common' ;
30
- import { SummaryProps } from '@/commonComponents' ;
31
29
import SummaryPrintTable from '@/components/SummaryPrintTable' ;
30
+ import useReport from '@/hooks/useReport' ;
32
31
33
32
import VariantChips from './components/VariantChips' ;
34
33
import VariantCounts from './components/VariantCounts' ;
@@ -72,7 +71,11 @@ const customTypeSort = (variant) => {
72
71
return 3 ;
73
72
} ;
74
73
75
- type GenomicSummaryProps = Omit < SummaryProps , 'templateName' > & WithLoadingInjectedProps ;
74
+ type GenomicSummaryProps = {
75
+ loadedDispatch ?: ( { type } : { type : string } ) => void ;
76
+ isPrint : boolean ;
77
+ printVersion ?: 'stable' | 'beta' | null ;
78
+ } & WithLoadingInjectedProps ;
76
79
77
80
const GenomicSummary = ( {
78
81
isPrint = false ,
@@ -368,7 +371,6 @@ const GenomicSummary = ({
368
371
snackbar . success ( 'Entry deleted' ) ;
369
372
}
370
373
} catch ( err ) {
371
- console . error ( err ) ;
372
374
snackbar . error ( 'Entry NOT deleted due to an error' ) ;
373
375
}
374
376
} , [ report , isSigned , showConfirmDialog ] ) ;
@@ -384,7 +386,6 @@ const GenomicSummary = ({
384
386
setVariants ( ( prevVal ) => ( [ ...prevVal , categorizedVariantEntry ] ) ) ;
385
387
snackbar . success ( 'Entry added' ) ;
386
388
} catch ( err ) {
387
- console . error ( err ) ;
388
389
snackbar . error ( 'Entry NOT added due to an error' ) ;
389
390
}
390
391
} , [ report ] ) ;
@@ -610,7 +611,7 @@ const GenomicSummary = ({
610
611
{ dataSection }
611
612
</ div >
612
613
) ;
613
- } , [ canEdit , classNamePrefix , handleTumourSummaryEditClose , microbial , primaryBurden , tmburMutBur , report , showTumourSummaryEdit , tumourSummary , printVersion ] ) ;
614
+ } , [ canEdit , classNamePrefix , handleTumourSummaryEditClose , microbial , tCellCd8 , primaryBurden , tmburMutBur , report , showTumourSummaryEdit , tumourSummary , printVersion ] ) ;
614
615
615
616
const alterationsSection = useMemo ( ( ) => {
616
617
let titleSection = (
0 commit comments