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
Field Science
datavis
Commits
34b66c7a
Commit
34b66c7a
authored
Feb 28, 2020
by
Porter Libby
Browse files
fix a bug with null hostname
parent
ea57e916
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/js/data.js
View file @
34b66c7a
...
...
@@ -517,7 +517,11 @@ function renderStreamingsHosts(hosts){
var
streamingshosts_ls
=
document
.
createElement
(
'
div
'
);
streamingshosts_ls
.
id
=
'
streamingshosts-ls
'
;
for
(
x
=
0
;
x
<
hosts
.
length
;
x
++
){
var
elem
=
createRadioElementStreamingsHosts
((
x
%
2
),
'
hosts
'
,
false
,
hosts
[
x
].
hostid
,
hosts
[
x
].
hostname
.
toString
());
// util function
var
hostname
=
"
Unknown
"
;
if
(
hosts
[
x
].
hostname
){
hostname
=
hosts
[
x
].
hostname
.
toString
()
}
var
elem
=
createRadioElementStreamingsHosts
((
x
%
2
),
'
hosts
'
,
false
,
hosts
[
x
].
hostid
,
hostname
);
// util function
streamingshosts_ls
.
innerHTML
+=
elem
;
}
container
.
append
(
streamingshosts_ls
);
...
...
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