Skip to content

Commit

Permalink
Test for data.response being defined and do some logging if not
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Oct 6, 2023
1 parent 9ff31ab commit 16db441
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/skins/classic/views/js/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,11 @@ function getSelectedTags() {
$j.getJSON(thisUrl + '?request=event&action=getselectedtags&id=' + eventData.Id)
.done(function(data) {
selectedTags = data.response;
selectedTags.forEach((tag) => formatTag(tag));
if (!selectedTags) {
console.log(data);
} else {
selectedTags.forEach((tag) => formatTag(tag));
}
})
.fail(logAjaxFail);
}
Expand Down

0 comments on commit 16db441

Please sign in to comment.