mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-09 16:21:08 -07:00
fix send to tab and hires upscale button
This commit is contained in:
parent
91d1034d8d
commit
cee0bf8464
3 changed files with 23 additions and 16 deletions
|
|
@ -30,9 +30,6 @@ function extract_image_from_gallery(gallery) {
|
|||
if (gallery.length == 0) {
|
||||
return [null];
|
||||
}
|
||||
if (gallery.length == 1) {
|
||||
return [gallery[0]];
|
||||
}
|
||||
|
||||
var index = selected_gallery_index();
|
||||
|
||||
|
|
@ -41,7 +38,7 @@ function extract_image_from_gallery(gallery) {
|
|||
index = 0;
|
||||
}
|
||||
|
||||
return [gallery[index]];
|
||||
return [[gallery[index]]];
|
||||
}
|
||||
|
||||
window.args_to_array = Array.from; // Compatibility with e.g. extensions that may expect this to be around
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue