mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-19 10:53:29 +00:00
fix template sorting
This commit is contained in:
parent
61a123a1e0
commit
77ab2c3f69
@ -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;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user