Skip to content

Commit 6af00c7

Browse files
[DSC-2851] add "n/a" label for statistic point in table to prevent e2e failures
1 parent 83ea86b commit 6af00c7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/statistics-page/cris-statistics-page/statistics-chart/statistics-table/statistics-table.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
<tr class="{{point.id}}-data">
3535
<th scope="row" data-test="statistics-label">
3636
@if (point && point.type && entityTypesToConvertToLink.includes($any(point.type))) {
37-
<a [href]="(point | dsCreateLink) | async">{{ point.label }} </a>
37+
<a [href]="(point | dsCreateLink) | async">{{ point.label ?? 'n/a' }} </a>
3838
} @else {
3939
<span>
40-
{{ point.label }}
40+
{{ point.label ?? 'n/a' }}
4141
</span>
4242
}
4343
</th>

src/app/statistics-page/statistics-table/statistics-table.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h2 class="m-1">
1919
<tr
2020
class="{{point.id}}-data">
2121
<th scope="row" data-test="statistics-label">
22-
{{ point.label }}
22+
{{ point.label ?? 'n/a' }}
2323
</th>
2424
@for (header of headers; track header) {
2525
<td

0 commit comments

Comments
 (0)