Don't reset reqBody, only replace using req as we use a new task object created from UI inputs.

Fix plugins needing to specify many params or they would be missing in the render request.
This commit is contained in:
Marc-Andre Ferland 2022-10-29 14:47:58 -04:00
parent 840348b4eb
commit 3bd97352ba

View File

@ -343,7 +343,7 @@ function onDownloadImageClick(req, img) {
function modifyCurrentRequest(req, ...reqDiff) {
const newTaskRequest = getCurrentUserRequest()
newTaskRequest.reqBody = Object.assign({}, req, ...reqDiff, {
newTaskRequest.reqBody = Object.assign(newTaskRequest.reqBody, req, ...reqDiff, {
use_cpu: useCPUField.checked
})
newTaskRequest.seed = newTaskRequest.reqBody.seed