tslint arrow-parens rule (#4003)

This commit is contained in:
Eugenio Romano
2018-11-23 01:06:56 +00:00
committed by GitHub
parent 51bb6a420f
commit 34a30c0f14
194 changed files with 725 additions and 723 deletions

View File

@@ -61,18 +61,18 @@ export class ObjectDataTableAdapter implements DataTableAdapter {
this._columns = [];
if (data && data.length > 0) {
this._rows = data.map(item => {
this._rows = data.map((item) => {
return new ObjectDataRow(item);
});
}
if (schema && schema.length > 0) {
this._columns = schema.map(item => {
this._columns = schema.map((item) => {
return new ObjectDataColumn(item);
});
// Sort by first sortable or just first column
let sortable = this._columns.filter(c => c.sortable);
let sortable = this._columns.filter((column) => column.sortable);
if (sortable.length > 0) {
this.sort(sortable[0].key, 'asc');
}