Reverting duplicate hypernetwork fix

This commit is contained in:
patriceac 2022-12-28 16:54:36 -08:00
parent 19c16af5fa
commit 5fddae589b

View File

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