Commit 33feb6e9 authored by Lijiao's avatar Lijiao Committed by liuzhe-lz
Browse files

fix bug of detail page broken when succeeded trial without final result (#1472)

* Update filter description and fix typo

* fix comments

* change node to result

* Add SupportTrainingService.md (#1401)

* fix nnictl schema

* Eject from react-scripts-ts-antd and bump webui dependencies version (#1412)

* Eject from react-scripts-ts-antd

* test whether it can pass CI without ugilfy

* temporarily disable uglify

* Try to fix security alert (#1429)

* fix bug of detail page broken when trial is succeed but not report final result
parent 7b755391
...@@ -85,7 +85,9 @@ class DefaultPoint extends React.Component<DefaultPointProps, DefaultPointState> ...@@ -85,7 +85,9 @@ class DefaultPoint extends React.Component<DefaultPointProps, DefaultPointState>
}); });
// deal with best metric line // deal with best metric line
const bestCurve: Array<number | object>[] = []; // best curve data source const bestCurve: Array<number | object>[] = []; // best curve data source
if (lineListDefault[0] !== undefined) {
bestCurve.push([lineListDefault[0][0], lineListDefault[0][1], accSource[0].searchSpace]); bestCurve.push([lineListDefault[0][0], lineListDefault[0][1], accSource[0].searchSpace]);
}
if (optimize === 'maximize') { if (optimize === 'maximize') {
for (let i = 1; i < lineListDefault.length; i++) { for (let i = 1; i < lineListDefault.length; i++) {
const val = lineListDefault[i][1]; const val = lineListDefault[i][1];
......
...@@ -115,6 +115,7 @@ ...@@ -115,6 +115,7 @@
} }
#detail-button{ #detail-button{
margin: 2px 0;
.common-style, .common-style:visited, .common-style:focus{ .common-style, .common-style:visited, .common-style:focus{
height: 26px; height: 26px;
border: none; border: none;
...@@ -131,7 +132,7 @@ ...@@ -131,7 +132,7 @@
.common-style:disabled{ .common-style:disabled{
background-color: #f4f4f4; background-color: #f4f4f4;
} }
.special, .special:visited, .special:focus{ .special, .special:visited, .special:focus, .special button{
height: 26px; height: 26px;
border: none; border: none;
border-radius: 0; border-radius: 0;
...@@ -146,7 +147,7 @@ ...@@ -146,7 +147,7 @@
background-color: #c8c8c8; background-color: #c8c8c8;
outline: 0; outline: 0;
} }
.special:disabled{ .special:disabled, .special button:disabled{
background-color: #f4f4f4; background-color: #f4f4f4;
color: #d9d9d9; color: #d9d9d9;
} }
......
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