Merge pull request #727 from patriceac/patch-11

Restore the original prompt if provided
This commit is contained in:
cmdr2 2022-12-29 10:15:22 +05:30 committed by GitHub
commit 5149040496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,8 +294,11 @@ function restoreTaskToUI(task, fieldsToSkip) {
} }
} }
// restore the original tag // restore the original prompt if provided (e.g. use settings), fallback to prompt as needed (e.g. copy/paste or d&d)
promptField.value = task.reqBody.original_prompt || task.reqBody.prompt promptField.value = task.reqBody.original_prompt
if (!('original_prompt' in task.reqBody)) {
promptField.value = task.reqBody.prompt
}
// properly reset checkboxes // properly reset checkboxes
if (!('use_face_correction' in task.reqBody)) { if (!('use_face_correction' in task.reqBody)) {