Fix restoration of hypernetwork dropdown

Fix for https://discord.com/channels/1014774730907209781/1014774732018683928/1055508538228748368
This commit is contained in:
patriceac 2022-12-28 15:55:59 -08:00 committed by GitHub
parent 451ab7e84c
commit 019f8f69f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,7 +297,11 @@ function restoreTaskToUI(task, fieldsToSkip) {
// restore the original tag
promptField.value = task.reqBody.original_prompt || task.reqBody.prompt
// properly reset checkboxes
// properly reset fields not present in the task
if (!('use_hypernetwork_model' in task.reqBody)) {
hypernetworkModelField.value = ""
hypernetworkModelField.dispatchEvent(new Event("change"))
}
if (!('use_face_correction' in task.reqBody)) {
useFaceCorrectionField.checked = false
}