Skip to content

Commit

Permalink
chore: fix build WARNING (#1726)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk authored Dec 8, 2023
1 parent bdf0e62 commit 8cd676e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/abc/notice-icon/notice-icon-tab.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@if (data.list?.length === 0) {
@if (data.list && data.list.length > 0) {
<ng-template [ngTemplateOutlet]="listTpl" />
} @else {
<div class="notice-icon__notfound">
@if (data.emptyImage) {
<img class="notice-icon__notfound-img" [attr.src]="data.emptyImage" alt="not found" />
Expand All @@ -9,8 +11,6 @@
</ng-container>
</p>
</div>
} @else {
<ng-template [ngTemplateOutlet]="listTpl" />
}
<ng-template #listTpl>
<nz-list [nzDataSource]="data.list" [nzRenderItem]="item">
Expand Down
2 changes: 1 addition & 1 deletion packages/chart/pie/pie.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h4 class="g2-pie__total-title">
</div>
}
</div>
@if (hasLegend && legendData?.length) {
@if (hasLegend && legendData.length > 0) {
<ul class="g2-pie__legend">
@for (item of legendData; track $index) {
<li (click)="_click($index)" class="g2-pie__legend-item">
Expand Down

0 comments on commit 8cd676e

Please sign in to comment.