Fix upscale multiple images bug

This commit is contained in:
cmdr2 2022-10-22 08:38:19 +05:30 committed by GitHub
parent 1bd7d40716
commit 7580bb21c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -421,10 +421,10 @@ function onDownloadImageClick(req, img) {
imgDownload.click()
}
function modifyCurrentRequest(req, reqDiff) {
function modifyCurrentRequest(req, ...reqDiff) {
const newTaskRequest = getCurrentUserRequest()
newTaskRequest.reqBody = Object.assign({}, req, reqDiff, {
newTaskRequest.reqBody = Object.assign({}, req, ...reqDiff, {
use_cpu: useCPUField.checked
})
newTaskRequest.seed = newTaskRequest.reqBody.seed
@ -1387,4 +1387,4 @@ async function getDiskPath() {
}
}
createCollapsibles()
createCollapsibles()