From 45db903d49eacc0443b182dd1115ebd815f96d80 Mon Sep 17 00:00:00 2001 From: Vito Date: Wed, 11 Oct 2017 10:57:09 +0100 Subject: [PATCH] [ADF-1663] refreshing process list when a task is completed (#2452) * [ADF-1663] refreshing process list when a task is completed * [ADF-1663] added check for process list --- .../app/components/activiti/activiti-demo.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts b/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts index bcde6be5ab..138e7a2869 100644 --- a/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts +++ b/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts @@ -366,7 +366,12 @@ export class ActivitiDemoComponent implements AfterViewInit, OnDestroy, OnInit { this.taskPagination.skipCount -= maxItems; } this.taskPage = this.currentPage(this.taskPagination.skipCount, maxItems); - this.taskList.reload(); + if (this.taskList) { + this.taskList.reload(); + } + if (this.processList) { + this.processList.reload(); + } } onFormContentClick(content: any): void {