mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Workflow Editor: Fix for last-remaining-workflow-output-unremovable. Clarify declaration (actually a bug, one was undefined, one was false).
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user