diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 681c073d..418f8758 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -340,10 +340,10 @@ function onDownloadImageClick(req, img) { imgDownload.click() } -function modifyCurrentRequest(req, ...reqDiff) { +function modifyCurrentRequest(...reqDiff) { const newTaskRequest = getCurrentUserRequest() - newTaskRequest.reqBody = Object.assign({}, req, ...reqDiff, { + newTaskRequest.reqBody = Object.assign(newTaskRequest.reqBody, ...reqDiff, { use_cpu: useCPUField.checked }) newTaskRequest.seed = newTaskRequest.reqBody.seed