Merge pull request #721 from patriceac/patch-8

Fix restoration of hypernetwork dropdown
This commit is contained in:
cmdr2 2022-12-29 10:26:54 +05:30 committed by GitHub
commit f3db6d84fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,6 +294,12 @@ function restoreTaskToUI(task, fieldsToSkip) {
}
}
// properly reset fields not present in the task
if (!('use_hypernetwork_model' in task.reqBody)) {
hypernetworkModelField.value = ""
hypernetworkModelField.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)) {