@@ -150,11 +150,15 @@ export function Component() {
150150 && isDefined ( drefResponse ?. event_date ) ;
151151 const eventTextDefined = drefResponse ?. type_of_dref === DREF_TYPE_IMMINENT
152152 && isTruthyString ( drefResponse ?. event_text ?. trim ( ) ) ;
153+ const sourceInformationDefined = isDefined ( drefResponse )
154+ && isDefined ( drefResponse . source_information )
155+ && drefResponse . source_information . length > 0 ;
153156 const showEventDescriptionSection = eventDescriptionDefined
154157 || eventScopeDefined
155158 || imagesFileDefined
156159 || eventDateDefined
157160 || eventTextDefined
161+ || sourceInformationDefined
158162 || isDefined ( drefResponse ?. event_map_file ?. file ) ;
159163
160164 const ifrcActionsDefined = isTruthyString ( drefResponse ?. ifrc ?. trim ( ) ) ;
@@ -312,7 +316,8 @@ export function Component() {
312316 && isDefined ( drefResponse . disaster_category )
313317 // FIXME: empty string in enum
314318 && drefResponse . disaster_category !== ''
315- && colorMap [ drefResponse . disaster_category ] ,
319+ && isDefined ( drefResponse . disaster_category )
320+ && colorMap [ drefResponse . disaster_category ] ,
316321 ) }
317322 strongValue
318323 />
@@ -453,6 +458,41 @@ export function Component() {
453458 </ DescriptionText >
454459 </ Container >
455460 ) }
461+ { sourceInformationDefined && (
462+ < Container
463+ heading = { strings . sourceInformationSectionHeading }
464+ childrenContainerClassName = { styles . sourceInformationList }
465+ headingLevel = { 3 }
466+ >
467+ < div className = { styles . nameTitle } >
468+ { strings . sourceInformationSourceNameTitle }
469+ </ div >
470+ < div className = { styles . linkTitle } >
471+ { strings . sourceInformationSourceLinkTitle }
472+ </ div >
473+ { drefResponse ?. source_information ?. map (
474+ ( source , index ) => (
475+ < Fragment key = { source . id } >
476+ < DescriptionText className = { styles . name } >
477+ < div className = { styles . nameList } >
478+ { `${ index + 1 } . ${ source . source_name } ` }
479+ </ div >
480+ </ DescriptionText >
481+ < DescriptionText className = { styles . link } >
482+ < Link
483+ href = { source . source_link }
484+ external
485+ withUnderline
486+ >
487+ { source ?. source_link }
488+ </ Link >
489+ </ DescriptionText >
490+ </ Fragment >
491+ ) ,
492+ ) }
493+
494+ </ Container >
495+ ) }
456496 </ >
457497 ) }
458498 { showNsActionsSection && (
0 commit comments