@@ -21,7 +21,7 @@ import SectionCollapsible from './SectionCollapsible';
21
21
import PreviousRunSectionCollapsible from './PreviousRunSectionCollapsible' ;
22
22
import BrokenLinkTable from './BrokenLinkTable' ;
23
23
import PreviousRunLinkTable from './PreviousRunLinkTable' ;
24
- import { LinkCheckResult } from '../types' ;
24
+ import { LinkCheckResult , Section } from '../types' ;
25
25
import { countBrokenLinks } from '../utils' ;
26
26
import FilterModal from './filterModal' ;
27
27
import { useWaffleFlags } from '../../data/apiHooks' ;
@@ -94,18 +94,18 @@ const ScanResults: FC<Props> = ({ data }) => {
94
94
} ;
95
95
} ;
96
96
97
- const vSections = [ ] ;
97
+ const vSections : Section [ ] = [ ] ;
98
98
99
- if ( data ?. courseUpdates ? .length > 0 ) {
100
- const courseUpdatesSection = createVirtualSection ( data . courseUpdates , 'course-updates' , 'courseUpdatesHeader' ) ;
99
+ if ( data ?. course_updates && data . course_updates . length > 0 ) {
100
+ const courseUpdatesSection = createVirtualSection ( data . course_updates , 'course-updates' , 'courseUpdatesHeader' ) ;
101
101
if ( courseUpdatesSection ) {
102
102
vSections . push ( courseUpdatesSection ) ;
103
103
}
104
104
}
105
105
106
- if ( data ?. customPages ? .length > 0 ) {
106
+ if ( data ?. custom_pages && data . custom_pages . length > 0 ) {
107
107
const customPagesSection = createVirtualSection (
108
- data . customPages ,
108
+ data . custom_pages ,
109
109
'custom-pages' ,
110
110
'customPagesHeader' ,
111
111
) ;
@@ -115,7 +115,7 @@ const ScanResults: FC<Props> = ({ data }) => {
115
115
}
116
116
117
117
return vSections ;
118
- } , [ data ?. courseUpdates , data ?. customPages , intl ] ) ;
118
+ } , [ data ?. course_updates , data ?. custom_pages , intl ] ) ;
119
119
120
120
// Combine virtual sections with regular sections
121
121
const allSectionsForBrokenLinks = useMemo (
0 commit comments