From 4c05cbbb2547b110cd81adc92726d2503cb179b2 Mon Sep 17 00:00:00 2001 From: mbritense <79840403+mbritense@users.noreply.github.com> Date: Fri, 20 Dec 2024 15:38:41 +0100 Subject: [PATCH] fix error (#1309) --- .../task-detail-content/task-detail-content.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/valtimo/task/src/lib/components/task-detail-content/task-detail-content.component.ts b/projects/valtimo/task/src/lib/components/task-detail-content/task-detail-content.component.ts index 426aa0f12..456b99f01 100644 --- a/projects/valtimo/task/src/lib/components/task-detail-content/task-detail-content.component.ts +++ b/projects/valtimo/task/src/lib/components/task-detail-content/task-detail-content.component.ts @@ -222,6 +222,8 @@ export class TaskDetailContentComponent implements OnInit, OnDestroy { this.resetTaskProcessLinkType(); this.resetFormDefinition(); + this.taskInstanceId$.next(task.id); + if (!processLink) { this.getTaskProcessLink(task.id); } else { @@ -233,7 +235,6 @@ export class TaskDetailContentComponent implements OnInit, OnDestroy { this.stateService.setDocumentId(documentId); this.task$.next(task); - this.taskInstanceId$.next(task.id); this.page$.next({ title: task.name, subtitle: `${this.translateService.instant('taskDetail.taskCreated')} ${task.created}`,