From a392b5750aa776fbc8ba27736d78901ddf0db29d Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Fri, 2 Feb 2018 09:01:35 -0500 Subject: [PATCH] Ensure jobStateSummariesCollection exists; events can fire during deletion actions causing this event to fail --- client/galaxy/scripts/mvc/history/history-contents.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,