mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 08:44:33 +02:00
address PR feedback
This commit is contained in:
+2
-2
@@ -64,8 +64,8 @@ function selected_gallery_index() {
|
||||
let result = -1;
|
||||
buttons.forEach((v, i) => { if (v === button) { result = i; } });
|
||||
if (result === -1 && gradioApp().getElementById('tab-gallery-search')?.checkVisibility()) {
|
||||
const gallerySelection = window.getGallerySelection?.();
|
||||
if (gallerySelection && Number.isInteger(gallerySelection.index)) result = gallerySelection.index;
|
||||
const gallerySelection = window.getGallerySelection();
|
||||
if (Number.isInteger(gallerySelection.index)) result = gallerySelection.index;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user