Browse Source

fix template sorting

pull/2162/head
pythongosssss 12 months ago
parent
commit
77ab2c3f69
  1. 2
      web/extensions/core/nodeTemplates.js

2
web/extensions/core/nodeTemplates.js

@ -164,7 +164,7 @@ class ManageTemplates extends ComfyDialog {
var prev_i = el.dataset.id;
if ( el == this.draggedEl && prev_i != i ) {
[this.templates[i], this.templates[prev_i]] = [this.templates[prev_i], this.templates[i]];
this.templates.splice(i, 0, this.templates.splice(prev_i, 1)[0]);
}
el.dataset.id = i;
});

Loading…
Cancel
Save