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
4574dcca
Commit
4574dcca
authored
Mar 14, 2019
by
Lijiao
Committed by
QuanluZhang
Mar 14, 2019
Browse files
Support intermediate is dict (#835)
Support intermediate is dict
parent
de9e2842
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/webui/src/components/trial-detail/TableList.tsx
src/webui/src/components/trial-detail/TableList.tsx
+6
-1
No files found.
src/webui/src/components/trial-detail/TableList.tsx
View file @
4574dcca
...
...
@@ -79,7 +79,12 @@ class TableList extends React.Component<TableListProps, TableListState> {
if
(
res
.
status
===
200
)
{
const
intermediateArr
:
number
[]
=
[];
Object
.
keys
(
res
.
data
).
map
(
item
=>
{
intermediateArr
.
push
(
parseFloat
(
res
.
data
[
item
].
data
));
const
temp
=
JSON
.
parse
(
res
.
data
[
item
].
data
);
if
(
typeof
temp
===
'
object
'
)
{
intermediateArr
.
push
(
temp
.
default
);
}
else
{
intermediateArr
.
push
(
temp
);
}
});
const
intermediate
=
intermediateGraphOption
(
intermediateArr
,
id
);
if
(
this
.
_isMounted
)
{
...
...
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