From d9040ccb997362c808784f0dacd5f83c7b0676f0 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Wed, 3 Apr 2013 17:46:19 -0400 Subject: [PATCH] Workflow Editor: Fix for last-remaining-workflow-output-unremovable. Clarify declaration (actually a bug, one was undefined, one was false). --- static/scripts/galaxy.workflow_editor.canvas.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/scripts/galaxy.workflow_editor.canvas.js b/static/scripts/galaxy.workflow_editor.canvas.js index c66c153eb69..f9e5a3e6fb7 100644 --- a/static/scripts/galaxy.workflow_editor.canvas.js +++ b/static/scripts/galaxy.workflow_editor.canvas.js @@ -491,7 +491,8 @@ $.extend( Workflow.prototype, { }, rectify_workflow_outputs : function() { // Find out if we're using workflow_outputs or not. - var using_workflow_outputs, has_existing_pjas = false; + var using_workflow_outputs = false; + var has_existing_pjas = false; $.each( this.nodes, function ( k, node ) { if (node.workflow_outputs && node.workflow_outputs.length > 0){ using_workflow_outputs = true; @@ -517,7 +518,7 @@ $.extend( Workflow.prototype, { pjas_to_rem.push(pja_id); } }); - if (pjas_to_rem.length > 0 && node == workflow.active_node) { + if (pjas_to_rem.length > 0 ) { $.each(pjas_to_rem, function(i, pja_name){ node_changed = true; delete node.post_job_actions[pja_name];