Fix allRowsSelected computed property (#2638)

* Fix allRowsSelected computed property

This fixes the issue described in #2637.

* Remove optional chaining operator

Replaced by ObjectUtils.isNotEmpty().
pull/2657/head
Néstor Pérez González 2022-06-08 16:08:37 +02:00 committed by GitHub
parent 8471c28e5a
commit fbc9ff240f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1894,7 +1894,7 @@ export default {
} }
else { else {
const val = this.frozenValue ? [...this.frozenValue, ...this.processedData] : this.processedData; const val = this.frozenValue ? [...this.frozenValue, ...this.processedData] : this.processedData;
return val && this.selection && Array.isArray(this.selection) && val.every(v => this.selection.some(s => this.equals(s, v))); return ObjectUtils.isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every(v => this.selection.some(s => this.equals(s, v)));
} }
}, },
attributeSelector() { attributeSelector() {