Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/primefaces/primevue
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Aug 24, 2021
2 parents 20e7492 + 52cc71e commit 4bf74ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/datatable/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,7 @@ export default {
},
allRowsSelected() {
const val = this.frozenValue ? [...this.frozenValue, ...this.processedData]: this.processedData;
const length = this.lazy ? this.totalRecords : val?.length;
const length = this.lazy ? this.totalRecords : (val ? val.length : 0);
return (val && length > 0 && this.selection && this.selection.length > 0 && this.selection.length === length);
},
attributeSelector() {
Expand Down

0 comments on commit 4bf74ac

Please sign in to comment.