Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
c80f2cda
Unverified
Commit
c80f2cda
authored
Mar 02, 2020
by
Lijiaoa
Committed by
GitHub
Mar 02, 2020
Browse files
fix bug (#2104)
Co-authored-by:
Lijiao
<
35484733+lvybriage@users.noreply.github.com
>
parent
134368fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/webui/src/components/trial-detail/TableList.tsx
src/webui/src/components/trial-detail/TableList.tsx
+2
-1
No files found.
src/webui/src/components/trial-detail/TableList.tsx
View file @
c80f2cda
...
...
@@ -241,6 +241,7 @@ class TableList extends React.Component<TableListProps, TableListState> {
// support intermediate result is dict because the last intermediate result is
// final result in a succeed trial, it may be a dict.
// get intermediate result dict keys array
const
{
intermediateKey
}
=
this
.
state
;
let
otherkeys
:
string
[]
=
[
'
default
'
];
if
(
res
.
data
.
length
!==
0
)
{
otherkeys
=
Object
.
keys
(
parseMetrics
(
res
.
data
[
0
].
data
));
...
...
@@ -249,7 +250,7 @@ class TableList extends React.Component<TableListProps, TableListState> {
Object
.
keys
(
res
.
data
).
map
(
item
=>
{
const
temp
=
parseMetrics
(
res
.
data
[
item
].
data
);
if
(
typeof
temp
===
'
object
'
)
{
intermediateArr
.
push
(
temp
.
default
);
intermediateArr
.
push
(
temp
[
intermediateKey
]
);
}
else
{
intermediateArr
.
push
(
temp
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment