Reset the LoRA dropdown if not present in the task

This commit is contained in:
patriceac 2023-04-02 02:04:03 -07:00 committed by GitHub
parent 75445185c4
commit 6aa048e3ad
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)) {