summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/portfolios/ScenarioTable.js
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-web/opendc-web-ui/src/components/portfolios/ScenarioTable.js')
-rw-r--r--opendc-web/opendc-web-ui/src/components/portfolios/ScenarioTable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/portfolios/ScenarioTable.js b/opendc-web/opendc-web-ui/src/components/portfolios/ScenarioTable.js
index 5fd2a1da..b068d045 100644
--- a/opendc-web/opendc-web-ui/src/components/portfolios/ScenarioTable.js
+++ b/opendc-web/opendc-web-ui/src/components/portfolios/ScenarioTable.js
@@ -59,7 +59,7 @@ function ScenarioTable({ portfolio, status }) {
<Td dataLabel="Topology">
{scenario.topology ? (
<Link href={`/projects/${projectId}/topologies/${scenario.topology.number}`}>
- scenario.topology.name
+ {scenario.topology.name}
</Link>
) : (
'Unknown Topology'
@@ -69,7 +69,7 @@ function ScenarioTable({ portfolio, status }) {
scenario.workload.samplingFraction * 100
}%)`}</Td>
<Td dataLabel="State">
- <ScenarioState state={scenario.job.state} />
+ <ScenarioState state={scenario.jobs[scenario.jobs.length - 1].state} />
</Td>
<Td isActionCell>
<ActionsColumn items={actions(scenario)} />