Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
639f7eaf
Unverified
Commit
639f7eaf
authored
Mar 10, 2020
by
Lijiaoa
Committed by
GitHub
Mar 10, 2020
Browse files
draw intermeidate number keys when intermediate is dict (#2137)
Co-authored-by:
Lijiao
<
15910218274@163.com
>
parent
437c2049
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/webui/src/components/trial-detail/TableList.tsx
src/webui/src/components/trial-detail/TableList.tsx
+8
-2
No files found.
src/webui/src/components/trial-detail/TableList.tsx
View file @
639f7eaf
...
@@ -241,9 +241,15 @@ class TableList extends React.Component<TableListProps, TableListState> {
...
@@ -241,9 +241,15 @@ class TableList extends React.Component<TableListProps, TableListState> {
// final result in a succeed trial, it may be a dict.
// final result in a succeed trial, it may be a dict.
// get intermediate result dict keys array
// get intermediate result dict keys array
const
{
intermediateKey
}
=
this
.
state
;
const
{
intermediateKey
}
=
this
.
state
;
le
t
otherkeys
:
string
[]
=
[
'
default
'
];
cons
t
otherkeys
:
string
[]
=
[
];
if
(
res
.
data
.
length
!==
0
)
{
if
(
res
.
data
.
length
!==
0
)
{
otherkeys
=
Object
.
keys
(
parseMetrics
(
res
.
data
[
0
].
data
));
// just add type=number keys
const
intermediateMetrics
=
parseMetrics
(
res
.
data
[
0
].
data
);
for
(
const
key
in
intermediateMetrics
){
if
(
typeof
intermediateMetrics
[
key
]
===
'
number
'
)
{
otherkeys
.
push
(
key
);
}
}
}
}
// intermediateArr just store default val
// intermediateArr just store default val
Object
.
keys
(
res
.
data
).
map
(
item
=>
{
Object
.
keys
(
res
.
data
).
map
(
item
=>
{
...
...
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