1. NCSA
  2. galaxy-central

Commits

Daniel Blankenberg  committed 2f51be0 Draft

Fix for workflow editor when a missing tool is connected to a valid tool. Javascript error would cause the 'Loading worflow editor...' modal window to spin indefinitely.

  • Participants
  • Parent commits eb4dac3
  • Branches default

Comments (0)

Files changed (1)

File static/scripts/galaxy.workflow_editor.canvas.js

View file
 $.extend( Connector.prototype, {
     connect: function ( t1, t2 ) {
         this.handle1 = t1;
-        this.handle1.connect( this );
+        if ( this.handle1 ) {
+            this.handle1.connect( this );
+        }
         this.handle2 = t2;
-        this.handle2.connect( this );
+        if ( this.handle2 ) {
+            this.handle2.connect( this );
+        }
     },
     destroy : function () {
         if ( this.handle1 ) {