Commit 8531d809 authored by Lijiao's avatar Lijiao Committed by chicm-ms
Browse files

fix bug of trial detail page break down when succeed trial have not final result (#1015)

parent 642967b8
...@@ -30,13 +30,15 @@ class DefaultPoint extends React.Component<DefaultPointProps, DefaultPointState> ...@@ -30,13 +30,15 @@ class DefaultPoint extends React.Component<DefaultPointProps, DefaultPointState>
const accSource: Array<DetailAccurPoint> = []; const accSource: Array<DetailAccurPoint> = [];
Object.keys(showSource).map(item => { Object.keys(showSource).map(item => {
const temp = showSource[item]; const temp = showSource[item];
if (temp.status === 'SUCCEEDED' && temp.acc.default !== undefined) { if (temp.status === 'SUCCEEDED' && temp.acc !== undefined) {
const searchSpace = temp.description.parameters; if (temp.acc.default !== undefined) {
accSource.push({ const searchSpace = temp.description.parameters;
acc: temp.acc.default, accSource.push({
index: temp.sequenceId, acc: temp.acc.default,
searchSpace: JSON.stringify(searchSpace) index: temp.sequenceId,
}); searchSpace: JSON.stringify(searchSpace)
});
}
} }
}); });
const resultList: Array<number | string>[] = []; const resultList: Array<number | string>[] = [];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment