Skip to content

Commit

Permalink
fix(module:table): fix table filter false or 0 error (#5535)
Browse files Browse the repository at this point in the history
close #5505
  • Loading branch information
vthinkxie authored Jul 9, 2020
1 parent 7f133af commit 56f052c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/table/src/addon/filter.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class NzTableFilterComponent implements OnChanges, OnDestroy, OnInit {
if (this.filterMultiple) {
this.filterChange.emit(listOfChecked);
} else {
this.filterChange.emit(listOfChecked[0] || null);
this.filterChange.emit(listOfChecked.length > 0 ? listOfChecked[0] : null);
}
this.isChanged = false;
}
Expand Down

0 comments on commit 56f052c

Please sign in to comment.