Skip to content

Commit a36b70c

Browse files
fix(ui): add image name data attr to gallery placeholder image elements
This fixes an issue where gallery's auto-scroll-into-view for selected images didn't work, and users instead saw a "Unable to find image..." debug log message in JS console.
1 parent 854a2a5 commit a36b70c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

invokeai/frontend/web/src/features/gallery/components/NewGallery.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const ImageAtPosition = memo(({ imageName }: { index: number; imageName: string
5959
imagesApi.endpoints.getImageDTO.useQuerySubscription(imageName, { skip: isUninitialized });
6060

6161
if (!imageDTO) {
62-
return <GalleryImagePlaceholder />;
62+
return <GalleryImagePlaceholder data-image-name={imageName} />;
6363
}
6464

6565
return <GalleryImage imageDTO={imageDTO} />;

0 commit comments

Comments
 (0)