forked from extern/easydiffusion
Merge pull request #1311 from patriceac/patch-3
Fix regression in restore task to UI flow
This commit is contained in:
commit
9fdd482811
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user