diff --git a/package-lock.json b/package-lock.json index a6d35ddc..932c7c5c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@processmaker/screen-builder", - "version": "3.8.22", + "version": "3.8.22-patch-a", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@processmaker/screen-builder", - "version": "3.8.22", + "version": "3.8.22-patch-a", "dependencies": { "@chantouchsek/validatorjs": "1.2.3", "@storybook/addon-docs": "^7.6.13", diff --git a/package.json b/package.json index 8cd84516..a10faea9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@processmaker/screen-builder", - "version": "3.8.22", + "version": "3.8.22-patch-a", "scripts": { "dev": "VITE_COVERAGE=true vite", "build": "vite build", 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