diff --git a/javascript/ui.js b/javascript/ui.js index 78d1caee5bf..3430b3fefd8 100644 --- a/javascript/ui.js +++ b/javascript/ui.js @@ -151,7 +151,7 @@ function submit() { } function submit_txt2img_upscale() { - res = submit.apply(null, arguments); + var res = submit(...arguments); res[2] = selected_gallery_index();