mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fixed unintentionally removed lines
This commit is contained in:
parent
ff2c4b9a1b
commit
ebeb556af9
@ -19,6 +19,7 @@ function appendOutput(src, seed, config) {
|
|||||||
outputNode.addEventListener('click', () => {
|
outputNode.addEventListener('click', () => {
|
||||||
let form = document.querySelector("#generate-form");
|
let form = document.querySelector("#generate-form");
|
||||||
for (const [k, v] of new FormData(form)) {
|
for (const [k, v] of new FormData(form)) {
|
||||||
|
if (k == 'initimg') { continue; }
|
||||||
form.querySelector(`*[name=${k}]`).value = config[k];
|
form.querySelector(`*[name=${k}]`).value = config[k];
|
||||||
}
|
}
|
||||||
if (config.variation_amount > 0 || config.with_variations != '') {
|
if (config.variation_amount > 0 || config.with_variations != '') {
|
||||||
@ -74,6 +75,7 @@ async function generateSubmit(form) {
|
|||||||
|
|
||||||
// Convert file data to base64
|
// Convert file data to base64
|
||||||
let formData = Object.fromEntries(new FormData(form));
|
let formData = Object.fromEntries(new FormData(form));
|
||||||
|
formData.initimg_name = formData.initimg.name
|
||||||
formData.initimg = formData.initimg.name !== '' ? await toBase64(formData.initimg) : null;
|
formData.initimg = formData.initimg.name !== '' ? await toBase64(formData.initimg) : null;
|
||||||
|
|
||||||
let strength = formData.strength;
|
let strength = formData.strength;
|
||||||
|
Loading…
Reference in New Issue
Block a user