Ensure jobStateSummariesCollection exists; events can fire during deletion actions causing this event to fail

This commit is contained in:
Dannon Baker
2018-02-02 09:01:35 -05:00
parent 60561c2030
commit a392b5750a
@@ -72,7 +72,7 @@ var HistoryContents = _super.extend(BASE_MVC.LoggableMixin).extend({
if (historyContent.attributes.history_content_type === "dataset_collection") {
var jobSourceType = historyContent.attributes.job_source_type;
var jobSourceId = historyContent.attributes.job_source_id;
if (jobSourceType) {
if (jobSourceType && this.jobStateSummariesCollection) {
this.jobStateSummariesCollection.add({
id: jobSourceId,
model: jobSourceType,