Skip to content

Commit

Permalink
Ensure jobStateSummariesCollection exists; events can fire during del…
Browse files Browse the repository at this point in the history
…etion actions causing this event to fail
  • Loading branch information
dannon committed Feb 2, 2018
1 parent 5a31ac8 commit 9023dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/galaxy/scripts/mvc/history/history-contents.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9023dd4

Please sign in to comment.