[ADF-3196] fixed selection of first tasklist element (#3491)

* [ADF-3196] [Task list / Process list] - The 'Task details' are not displayed for the selected Task

* * After rebase

* [ADF-3196] fixed selection for fist element
This commit is contained in:
Vito
2018-06-15 14:52:45 +01:00
committed by Eugenio Romano
parent acf73fba54
commit 528d8e5855

View File

@@ -257,7 +257,8 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
dataRow = this.rows.find((currentRow: any) => {
return currentRow['id'] === taskIdSelected;
});
} else if (this.selectFirstRow) {
}
if (!dataRow && this.selectFirstRow) {
dataRow = this.rows[0];
}
if (dataRow) {