Commit 6efe561c authored by comfyanonymous's avatar comfyanonymous
Browse files

Merge branch 'fix-template-sorting' of https://github.com/pythongosssss/ComfyUI

parents 44d8abad 77ab2c3f
...@@ -164,7 +164,7 @@ class ManageTemplates extends ComfyDialog { ...@@ -164,7 +164,7 @@ class ManageTemplates extends ComfyDialog {
var prev_i = el.dataset.id; var prev_i = el.dataset.id;
if ( el == this.draggedEl && prev_i != i ) { 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; el.dataset.id = i;
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment