diff --git a/plugins/cloudbuild/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx b/plugins/cloudbuild/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx index a0868c806b..59c149da32 100644 --- a/plugins/cloudbuild/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx +++ b/plugins/cloudbuild/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx @@ -35,7 +35,7 @@ export type WorkflowRun = { status: string; substitutions: Substitutions; createTime: string; - onReRunClick: () => void; + rerun: () => void; }; const generatedColumns: TableColumn[] = [ @@ -105,7 +105,7 @@ const generatedColumns: TableColumn[] = [ title: 'Actions', render: (row: Partial) => ( - + diff --git a/plugins/cloudbuild/src/components/useWorkflowRuns.ts b/plugins/cloudbuild/src/components/useWorkflowRuns.ts index 8b25890a26..b6d6c2c620 100644 --- a/plugins/cloudbuild/src/components/useWorkflowRuns.ts +++ b/plugins/cloudbuild/src/components/useWorkflowRuns.ts @@ -44,7 +44,7 @@ export function useWorkflowRuns({ projectId }: { projectId: string }) { return workflowRunsData.builds.map(run => ({ message: run.substitutions.REPO_NAME, id: run.id, - onReRunClick: async () => { + rerun: async () => { try { await api.reRunWorkflow({ projectId,