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
deaa1873
"vscode:/vscode.git/clone" did not exist on "33b5a8556b68c2cbeba555088b647310779d17e4"
Commit
deaa1873
authored
Oct 16, 2018
by
Lijiao
Committed by
chicm-ms
Oct 16, 2018
Browse files
Fix bug when trail duration is 0 (#223)
parent
16dcfebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/webui/src/components/TrialStatus.tsx
src/webui/src/components/TrialStatus.tsx
+3
-1
No files found.
src/webui/src/components/TrialStatus.tsx
View file @
deaa1873
...
...
@@ -413,8 +413,10 @@ class TrialStatus extends React.Component<{}, TabState> {
sorter
:
(
a
:
TableObj
,
b
:
TableObj
)
=>
(
a
.
duration
as
number
)
-
(
b
.
duration
as
number
),
render
:
(
text
:
string
,
record
:
TableObj
)
=>
{
let
duration
;
if
(
record
.
duration
)
{
if
(
record
.
duration
!==
undefined
&&
record
.
duration
>
0
)
{
duration
=
this
.
convertTime
(
record
.
duration
);
}
else
{
duration
=
0
;
}
return
(
<
span
>
{
duration
}
</
span
>
...
...
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