File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
web-frontend/src/components Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,18 @@ import ErrorDetailsTable from "../features/report/ErrorDetailsTable"
88const ReportView = ( { appReleaseVersion, fileReport} : {
99 appReleaseVersion : string ,
1010 fileReport : FileReportVm
11- } ) =>
12- < >
11+ } ) => {
12+ const feil = fileReport . feil ?? [ ]
13+ const hasErrors = feil . length > 0
14+
15+ return < >
1316 < ReportSummary appReleaseVersion = { appReleaseVersion } fileReport = { fileReport } />
14- { fileReport . feil ?. length && < ErrorSummary reportEntries = { fileReport . feil } /> }
15- { fileReport . feil ?. length && < ErrorDetailsTable reportEntries = { fileReport . feil } /> }
17+ { hasErrors && (
18+ < >
19+ < ErrorSummary reportEntries = { feil } />
20+ < ErrorDetailsTable reportEntries = { feil } />
21+ </ > ) }
1622 </ >
23+ }
1724
1825export default ReportView
You can’t perform that action at this time.
0 commit comments