Skip to content

Commit

Permalink
fix template sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
pythongosssss committed Dec 3, 2023
1 parent 61a123a commit 77ab2c3
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 77ab2c3

Please sign in to comment.