Can work with one or more params, don't need a minimum of two.

Still works just the same.
This commit is contained in:
Marc-Andre Ferland 2022-10-30 14:09:12 -04:00
parent 3bd97352ba
commit a922a93016

View File

@ -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(newTaskRequest.reqBody, 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