diff --git a/src/components/task.vue b/src/components/task.vue index 5fd7038a..88d17025 100644 --- a/src/components/task.vue +++ b/src/components/task.vue @@ -831,6 +831,12 @@ export default { * @param {Object} data - The event data received from the socket listener. */ handleProcessUpdate(data) { + if (!this.task) { + // reload the task if it is not found + this.reload(); + return; + } + const { event, elementDestination, tokenId } = data; // If the activity is completed and there is an element destination, set the element destination to the task