export default function()

in client/containers/workflow/helpers/parent-workflow-link.js [22:39]


export default function({ clusterName, eventDetails }) {
  if (eventDetails && eventDetails.parentWorkflowExecution) {
    return {
      to: {
        name: 'workflow/summary',
        params: {
          clusterName,
          domain: eventDetails.parentWorkflowDomain,
          workflowId: eventDetails.parentWorkflowExecution.workflowId,
          runId: eventDetails.parentWorkflowExecution.runId,
        },
      },
      text: eventDetails.parentWorkflowExecution.workflowId,
    };
  }

  return null;
}