From 547d1d5b8d8e1e54dde88aa72739722a84a0ab8a Mon Sep 17 00:00:00 2001 From: Sanja Date: Thu, 18 Jan 2024 15:05:19 -0800 Subject: [PATCH] Resolve undefined 'getScreenEndpoint' error when running a task in Guided Templates --- src/components/task.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/task.vue b/src/components/task.vue index 364c27c6f..5e342335c 100644 --- a/src/components/task.vue +++ b/src/components/task.vue @@ -299,7 +299,11 @@ export default { .then((response) => { this.task = response.data; this.checkTaskStatus(); - if (window.PM4ConfigOverrides.getScreenEndpoint && window.PM4ConfigOverrides.getScreenEndpoint.includes('tasks/')) { + if ( + window.PM4ConfigOverrides + && window.PM4ConfigOverrides.getScreenEndpoint + && window.PM4ConfigOverrides.getScreenEndpoint.includes('tasks/') + ) { const screenPath = window.PM4ConfigOverrides.getScreenEndpoint.split('/'); screenPath[1] = this.task.id; window.PM4ConfigOverrides.getScreenEndpoint = screenPath.join('/');