We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c94f271 commit 0163f1cCopy full SHA for 0163f1c
src/demo-app/data-table/person-data-source.ts
@@ -54,7 +54,8 @@ export class PersonDataSource extends DataSource<any> {
54
if (!this._sort.active || this._sort.direction == '') { return data; }
55
56
return data.sort((a, b) => {
57
- let propertyA, propertyB;
+ let propertyA: number|string = '';
58
+ let propertyB: number|string = '';
59
60
switch (this._sort.active) {
61
case 'userId': [propertyA, propertyB] = [a.id, b.id]; break;
0 commit comments