Skip to content

Commit 97d53eb

Browse files
Mattia VianelliMattia Vianelli
authored andcommitted
DSC-2702 Updated template logic to use @let
1 parent de509a8 commit 97d53eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
}
2121

2222
@if ((results | async) && (results | async).length > 0) {
23-
@if (hasNonZeroValues((results | async))) {
23+
@let res = results | async;
24+
@if (hasNonZeroValues(res)) {
2425
<div #chartRef id="chart" class="d-flex w-100 search-chart-container">
2526
<ds-chart [results]="results" [view]="view" [type]='chartType.PIE' [animations]="true"></ds-chart>
2627
</div>

0 commit comments

Comments
 (0)