From 1f973f4867e442ead044837105166dedf7c6eb4c Mon Sep 17 00:00:00 2001 From: ebarrios Date: Mon, 21 Sep 2020 10:22:41 +0200 Subject: [PATCH] Modify the value of Service Account in the details to correct the error that was not showing the service account --- .../src/components/WorkflowRunDetails/WorkflowRunDetails.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/cloudbuild/src/components/WorkflowRunDetails/WorkflowRunDetails.tsx b/plugins/cloudbuild/src/components/WorkflowRunDetails/WorkflowRunDetails.tsx index 0c2635f77b..9f8a6c2229 100644 --- a/plugins/cloudbuild/src/components/WorkflowRunDetails/WorkflowRunDetails.tsx +++ b/plugins/cloudbuild/src/components/WorkflowRunDetails/WorkflowRunDetails.tsx @@ -66,6 +66,8 @@ export const WorkflowRunDetails = ({ entity }: { entity: Entity }) => { const details = useWorkflowRunsDetails(projectId); + const serviceAccount = (details.value?.logUrl ?? '=').split('='); + const classes = useStyles(); if (error) { return ( @@ -116,7 +118,7 @@ export const WorkflowRunDetails = ({ entity }: { entity: Entity }) => { Service Account - {`${details.value?.projectId}`}@cloudbuild.gserviceaccount.com + {`${serviceAccount[1]}`}@cloudbuild.gserviceaccount.com