diff --git a/src/components/workflows/WorkflowsList.vue b/src/components/workflows/WorkflowsList.vue index 1c988128c225335668446a7473a2b7250b7e7194..8eeaf277572b5f414bed48bef7520e7d1fec74e9 100644 --- a/src/components/workflows/WorkflowsList.vue +++ b/src/components/workflows/WorkflowsList.vue @@ -214,8 +214,9 @@ const mapMetadata = ({ }) => { workflow_steps = workflow_steps .map(step => { - const id = Object.keys(step)[0]; - const params = Object.keys(step[id]).map(paramKey => ({ name: paramKey, value: step[id][paramKey] })); + console.log(step); + const id = step.id; + const params = Object.keys(step.params).map(paramKey => ({ name: paramKey, value: step.params[paramKey] })); return { id, url: getRepoUrl(id), params }; }); diff --git a/src/helpers/shorten-cer.js b/src/helpers/shorten-cer.js index 0c7071273119e578ea5ea9f3fd6a8ace61598d37..1709fa527932e0a20e278e4d7f02ea351819bafb 100644 --- a/src/helpers/shorten-cer.js +++ b/src/helpers/shorten-cer.js @@ -1,5 +1,5 @@ const createReadableMetricValue = (key, value) => { - if (['cer_mean', 'cer_median', 'wer', 'pages_per_minute', 'cer_standard_deviation'].includes(key)) { + if (['cer_mean', 'cer_median', 'wer', 'pages_per_minute', 'cer_standard_deviation', 'wall_time'].includes(key)) { return shortenMetricValue(value); } else if (key === 'cer_range') { return shortenMetricValue(value[0]) + ' / ' + shortenMetricValue(value[1]);