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];