mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-02-16 10:29:39 +01:00
Fix restore task to UI flow
Fixes a regression introduced by https://github.com/cmdr2/stable-diffusion-ui/pull/1304
This commit is contained in:
parent
edd92b724f
commit
6826435046
@ -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