From 5c794ad31b5cfacde39228855c50c8c5f1a4c5ee Mon Sep 17 00:00:00 2001 From: rbertus2000 <91765399+rbertus2000@users.noreply.github.com> Date: Sat, 22 Jul 2023 23:53:49 +0200 Subject: [PATCH] temp fix for lora --- plugins/Patrice/template-manager.plugin.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/Patrice/template-manager.plugin.js b/plugins/Patrice/template-manager.plugin.js index 85b1e02..2643451 100644 --- a/plugins/Patrice/template-manager.plugin.js +++ b/plugins/Patrice/template-manager.plugin.js @@ -318,7 +318,7 @@ const selectedTemplate = templateCopy[index]; templateCopy.splice(index, 1); // render template - loraModelField.value = "" + lora_model_0.value = "" restoreTask(selectedTemplate.task) numOutputsTotalField.value = slideshowImagecount.value > 0 ? slideshowImagecount.value : 256 makeImage() @@ -532,7 +532,7 @@ // select template l.addEventListener("click", (event) => { if (!editingTemplate) { - loraModelField.value = "" + lora_model_0.value = "" restoreTask(template.task) document.querySelector('#task-templates-editor.popup').classList.remove("active") event.stopPropagation() @@ -547,7 +547,7 @@ } templateName.classList.add('lastGeneration') lastGeneration = templateName - loraModelField.value = "" + lora_model_0.value = "" restoreTask(template.task) makeImage() event.stopPropagation() @@ -561,7 +561,7 @@ } templateName.classList.add('lastGeneration') lastGeneration = templateName - loraModelField.value = "" + lora_model_0.value = "" restoreTask(template.task) numOutputsTotalField.value = slideshowImagecount.value > 0 ? slideshowImagecount.value : 256 makeImage() @@ -962,4 +962,4 @@ }); } } -})() +})() \ No newline at end of file