mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
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.
This commit is contained in:
@@ -59,7 +59,7 @@ const ImageAtPosition = memo(({ imageName }: { index: number; imageName: string
|
||||
imagesApi.endpoints.getImageDTO.useQuerySubscription(imageName, { skip: isUninitialized });
|
||||
|
||||
if (!imageDTO) {
|
||||
return <GalleryImagePlaceholder />;
|
||||
return <GalleryImagePlaceholder data-image-name={imageName} />;
|
||||
}
|
||||
|
||||
return <GalleryImage imageDTO={imageDTO} />;
|
||||
|
||||
Reference in New Issue
Block a user