Use name from input to export single node template

This commit is contained in:
Jairo Correa 2023-10-17 19:44:26 -03:00
parent 6dbb18df92
commit a555074737
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class ManageTemplates extends ComfyDialog {
const url = URL.createObjectURL(blob);
const a = $el("a", {
href: url,
download: t.name + ".json",
download: (nameInput.value || t.name) + ".json",
style: {display: "none"},
parent: document.body,
});