Skip to content

Commit

Permalink
Fix undefined variable error in repository installation queue
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Nov 6, 2017
1 parent 7bbd2db commit 41e2558
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/galaxy/scripts/mvc/toolshed/repository-view.js
Expand Up @@ -266,13 +266,12 @@ var ToolShedRepositoryView = Backbone.View.extend({
if (!localStorage.repositories) {
return;
}
var repository_queue = JSON.parse(localStorage.repositories);
var changeset = metadata.changeset_revision;
var queue_key = that.queueKey(metadata);
var queued_repos;
if (localStorage.repositories) {
queued_repos = JSON.parse(localStorage.repositories);
}
if (queued_repos.hasOwnProperty(queue_key)) {
if (queued_repos && queued_repos.hasOwnProperty(queue_key)) {
return true;
}
return false;
Expand Down

0 comments on commit 41e2558

Please sign in to comment.