forked from extern/easydiffusion
Merge pull request #421 from madrang/beta
Fix plugins needing to specify many params or they would be missing in the render request.
This commit is contained in:
commit
2b3e38f77e
@ -340,10 +340,10 @@ function onDownloadImageClick(req, img) {
|
|||||||
imgDownload.click()
|
imgDownload.click()
|
||||||
}
|
}
|
||||||
|
|
||||||
function modifyCurrentRequest(req, ...reqDiff) {
|
function modifyCurrentRequest(...reqDiff) {
|
||||||
const newTaskRequest = getCurrentUserRequest()
|
const newTaskRequest = getCurrentUserRequest()
|
||||||
|
|
||||||
newTaskRequest.reqBody = Object.assign({}, req, ...reqDiff, {
|
newTaskRequest.reqBody = Object.assign(newTaskRequest.reqBody, ...reqDiff, {
|
||||||
use_cpu: useCPUField.checked
|
use_cpu: useCPUField.checked
|
||||||
})
|
})
|
||||||
newTaskRequest.seed = newTaskRequest.reqBody.seed
|
newTaskRequest.seed = newTaskRequest.reqBody.seed
|
||||||
|
Loading…
Reference in New Issue
Block a user