diff --git a/client/galaxy/scripts/mvc/history/history-contents.js b/client/galaxy/scripts/mvc/history/history-contents.js index 46c46f7fec0..7dd48a16313 100644 --- a/client/galaxy/scripts/mvc/history/history-contents.js +++ b/client/galaxy/scripts/mvc/history/history-contents.js @@ -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,