Skip to content

Commit

Permalink
fix workflow event activity steam linking
Browse files Browse the repository at this point in the history
  • Loading branch information
John Mitchell authored and John Mitchell committed Jan 14, 2021
1 parent 65628d5 commit 394ad8d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ const buildAnchor = (obj, resource, activity) => {
if (activity.summary_fields.job_template) {
const jt_id = activity.summary_fields.job_template[0].id;
url = `/templates/job_template/${jt_id}/schedules/${obj.id}/`;
} else if (activity.summary_fields.workflow_job_template) {
const wfjt_id = activity.summary_fields.workflow_job_template[0].id;
url = `/templates/workflow_job_template/${wfjt_id}/schedules/${obj.id}/`;
} else if (activity.summary_fields.project) {
url = `/projects/${activity.summary_fields.project[0].id}/schedules/${obj.id}/`;
} else if (activity.summary_fields.system_job_template) {
Expand Down Expand Up @@ -82,8 +85,8 @@ const buildAnchor = (obj, resource, activity) => {
break;
case 'workflow_job_template_node': {
const {
wfjt_id,
wfjt_name,
id: wfjt_id,
name: wfjt_name,
} = activity.summary_fields.workflow_job_template[0];
url = `/templates/workflow_job_template/${wfjt_id}/`;
name = wfjt_name;
Expand Down

0 comments on commit 394ad8d

Please sign in to comment.