Skip to content

Commit a5ecd31

Browse files
authored
Merge pull request #456 from kinfkong/issue-334
fix issue #334
2 parents f53fe0e + 68f8c43 commit a5ecd31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/components/data-viewer/data-viewer.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<ng-container matColumnDef="checkbox">
5353
<th mat-header-cell *matHeaderCellDef class="checkbox-col">
5454
<mat-checkbox (change)="masterCheckboxToggle($event)"
55-
[checked]="hasKeys() && isAllSelected()"
55+
[checked]="hasKeys() && isAllSelected() && data.length > 0"
5656
[indeterminate]="hasKeys() && !isAllSelected()">
5757
</mat-checkbox>
5858
</th>

0 commit comments

Comments
 (0)