Merge pull request #1311 from patriceac/patch-3

Fix regression in restore task to UI flow
This commit is contained in:
cmdr2 2023-05-28 17:32:26 +05:30 committed by GitHub
commit 9fdd482811
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,6 @@ const TASK_MAPPING = {
name: "Prompt",
setUI: (prompt) => {
promptField.value = prompt
promptField.dispatchEvent(new Event("input"))
},
readUI: () => promptField.value,
parse: (val) => val,
@ -422,6 +421,7 @@ function restoreTaskToUI(task, fieldsToSkip) {
if (!("original_prompt" in task.reqBody)) {
promptField.value = task.reqBody.prompt
}
promptField.dispatchEvent(new Event("input"))
// properly reset checkboxes
if (!("use_face_correction" in task.reqBody)) {