Skip to content
Snippets Groups Projects
Commit 485e4ee1 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Fixing bug in event detail javascript

Fixed a bug in gracedb/templates/gracedb/event_detail_script.js
which caused event logs to not render properly since the code was
trying to access a div which didn't exist.
parent bf3c823a
No related branches found
No related tags found
No related merge requests found
......@@ -954,10 +954,13 @@ require([
if (emos.length == 0) {
emoDiv = dom.byId('emo-grid');
emoDiv.innerHTML = '<p> No EM observation entries so far. </p>';
if (emoDiv !=== null) {
emoDiv.innerHTML = '<p> No EM observation entries so far. </p>';
}
// Let's try toggling the emo title pane closed.
if (emo_tp.open) { emo_tp.toggle(); }
//if (emo_tp.open) { emo_tp.toggle(); }
} else {
// Notice that the +00:00 designating UTC will be stripped out since it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment