mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-20 01:48:21 +02: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",
|
name: "Prompt",
|
||||||
setUI: (prompt) => {
|
setUI: (prompt) => {
|
||||||
promptField.value = prompt
|
promptField.value = prompt
|
||||||
promptField.dispatchEvent(new Event("input"))
|
|
||||||
},
|
},
|
||||||
readUI: () => promptField.value,
|
readUI: () => promptField.value,
|
||||||
parse: (val) => val,
|
parse: (val) => val,
|
||||||
@ -422,6 +421,7 @@ function restoreTaskToUI(task, fieldsToSkip) {
|
|||||||
if (!("original_prompt" in task.reqBody)) {
|
if (!("original_prompt" in task.reqBody)) {
|
||||||
promptField.value = task.reqBody.prompt
|
promptField.value = task.reqBody.prompt
|
||||||
}
|
}
|
||||||
|
promptField.dispatchEvent(new Event("input"))
|
||||||
|
|
||||||
// properly reset checkboxes
|
// properly reset checkboxes
|
||||||
if (!("use_face_correction" in task.reqBody)) {
|
if (!("use_face_correction" in task.reqBody)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user