Skip to content

Commit

Permalink
Merge branch 'fix-template-sorting' of https://github.com/pythongosss…
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Dec 4, 2023
2 parents 44d8aba + 77ab2c3 commit 6efe561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/extensions/core/nodeTemplates.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit 6efe561

Please sign in to comment.