Merge pull request #1109 from patriceac/patch-64

Reset the LoRA dropdown if not present in the task
This commit is contained in:
cmdr2 2023-04-06 15:39:16 +05:30 committed by GitHub
commit 38b4a7856e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,7 +340,12 @@ function restoreTaskToUI(task, fieldsToSkip) {
hypernetworkModelField.value = ""
hypernetworkModelField.dispatchEvent(new Event("change"))
}
if (!('use_lora_model' in task.reqBody)) {
loraModelField.value = "None"
loraModelField.dispatchEvent(new Event("change"))
}
// restore the original prompt if provided (e.g. use settings), fallback to prompt as needed (e.g. copy/paste or d&d)
promptField.value = task.reqBody.original_prompt
if (!('original_prompt' in task.reqBody)) {