From 232f8f0301fee5a631408104f0f61adf4bb7d4c1 Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Mon, 29 Jul 2024 13:26:58 -0700 Subject: [PATCH 1/3] Set node id before loading the task for webentry --- src/components/task.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/task.vue b/src/components/task.vue index 507ae99ab..88fcf6ac4 100644 --- a/src/components/task.vue +++ b/src/components/task.vue @@ -488,8 +488,8 @@ export default { this.emitIfTaskCompleted(requestId); } this.taskId = task.id; - this.loadTask(); this.nodeId = task.element_id; + this.loadTask(); } else if (this.parentRequest && ['COMPLETED', 'CLOSED'].includes(this.task.process_request.status)) { this.$emit('completed', this.getAllowedRequestId()); } else if (!this.taskPreview) { From 55151be2069797e7eee8adcf60a8bd916ef5504d Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Tue, 6 Aug 2024 10:53:28 -0700 Subject: [PATCH 2/3] Start events do not have tasks, use optional chain --- src/components/task.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/task.vue b/src/components/task.vue index 88fcf6ac4..6148faf4b 100644 --- a/src/components/task.vue +++ b/src/components/task.vue @@ -691,7 +691,7 @@ export default { data.event === "ACTIVITY_ACTIVATED" && data.elementType === 'task' ) { - if (!this.task.elementDestination?.type) { + if (!this.task?.elementDestination?.type) { this.taskId = data.taskId; } From 2ba8791dea13979758facbfe23e6f9de5a55c206 Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Tue, 6 Aug 2024 15:21:12 -0700 Subject: [PATCH 3/3] Fix self service message flashing on submit --- src/components/task.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/task.vue b/src/components/task.vue index 6148faf4b..c8d11db8d 100644 --- a/src/components/task.vue +++ b/src/components/task.vue @@ -7,15 +7,16 @@ >