Don't allow to make zero images, make at least one. (#647)

This commit is contained in:
JeLuF 2022-12-12 06:41:33 +01:00 committed by GitHub
parent af5c68051a
commit 8faf6b9f52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -455,10 +455,10 @@ function makeImage() {
alert('The "Inference Steps" field must not be empty.')
return
}
if (numOutputsTotalField.value == '') {
if (numOutputsTotalField.value == '' || numOutputsTotalField.value == 0) {
numOutputsTotalField.value = 1
}
if (numOutputsParallelField.value == '') {
if (numOutputsParallelField.value == '' || numOutputsParallelField.value == 0) {
numOutputsParallelField.value = 1
}
if (guidanceScaleField.value == '') {