undefined conditional check

This commit is contained in:
John Mitchell
2017-01-30 11:21:36 -05:00
parent a83b518399
commit 2492b7a053

View File

@@ -308,7 +308,7 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy
// let's see if we have a specific place to put it in // let's see if we have a specific place to put it in
// the pane // the pane
let $prevElem = $(`.next_is_${mungedEvent.start_line}`); let $prevElem = $(`.next_is_${mungedEvent.start_line}`);
if ($prevElem.length) { if ($prevElem && $prevElem.length) {
// if so, put it there // if so, put it there
$(`.next_is_${mungedEvent.start_line}`) $(`.next_is_${mungedEvent.start_line}`)
.after($compile(mungedEvent .after($compile(mungedEvent