Skip to content

Commit

Permalink
Resolve undefined 'getScreenEndpoint' error when running a task in Gu…
Browse files Browse the repository at this point in the history
…ided Templates
  • Loading branch information
sanjacornelius committed Jan 18, 2024
1 parent 325908f commit 547d1d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/task.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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('/');
Expand Down

0 comments on commit 547d1d5

Please sign in to comment.