From 528d8e585548781a08130dcf520d57c2b399889a Mon Sep 17 00:00:00 2001 From: Vito Date: Fri, 15 Jun 2018 14:52:45 +0100 Subject: [PATCH] [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 --- .../task-list/components/task-list.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/process-services/task-list/components/task-list.component.ts b/lib/process-services/task-list/components/task-list.component.ts index 66892a3466..87445fdec7 100644 --- a/lib/process-services/task-list/components/task-list.component.ts +++ b/lib/process-services/task-list/components/task-list.component.ts @@ -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) {