This commit is contained in:
Marc-Andre Ferland 2022-10-22 12:17:12 -04:00
commit 4167c65acf

View File

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