Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
fix detail table succeed trial XXX(FINAL) when have not final result
Browse files Browse the repository at this point in the history
  • Loading branch information
v-liguo committed Jul 25, 2019
1 parent 1fd61e5 commit 92d75bc
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/webui/src/components/public-child/IntermediateVal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class IntermediateVal extends React.Component<IntermediateValProps, {}> {
render() {
const { record } = this.props;
const interArr = record.description.intermediate;
const status = record.status;
let lastVal;
let wei = 0;
if (interArr !== undefined) {
Expand All @@ -29,12 +28,10 @@ class IntermediateVal extends React.Component<IntermediateValProps, {}> {
result = `${lastVal.toFixed(6)}`;
}
}
if (status === 'SUCCEEDED') {
// some trial haven't final result
if (record.acc !== undefined) {
if (record.acc.default !== undefined) {
result = `${result} (FINAL)`;
}
// some trial haven't final result
if (record.acc !== undefined) {
if (record.acc.default !== undefined) {
result = `${result} (FINAL)`;
}
} else {
result = `${result} (LATEST)`;
Expand Down

0 comments on commit 92d75bc

Please sign in to comment.