Skip to content

Commit 80a019a

Browse files
Merge pull request #3497 from Omar-Nabil2/fix/handle-null-report-category-display
WEB-879 Handle API response where report category returns '(NULL)' string
2 parents c1029d0 + c4ef16b commit 80a019a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/app/system/manage-reports/manage-reports.component.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,15 @@
4242

4343
<ng-container matColumnDef="reportCategory">
4444
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.Report Category' | translate }}</th>
45-
<td mat-cell *matCellDef="let report">{{ report.reportCategory | translateKey: 'catalogs' }}</td>
45+
<td mat-cell *matCellDef="let report">
46+
{{
47+
report.reportCategory &&
48+
report.reportCategory.trim() &&
49+
report.reportCategory.trim().toUpperCase() !== '(NULL)'
50+
? (report.reportCategory.trim() | translateKey: 'catalogs')
51+
: ''
52+
}}
53+
</td>
4654
</ng-container>
4755

4856
<ng-container matColumnDef="coreReport">

0 commit comments

Comments
 (0)