diff --git a/invokeai/frontend/web/src/features/gallery/hooks/useNextPrevImage.ts b/invokeai/frontend/web/src/features/gallery/hooks/useNextPrevImage.ts index a5c613f80e..ede9004516 100644 --- a/invokeai/frontend/web/src/features/gallery/hooks/useNextPrevImage.ts +++ b/invokeai/frontend/web/src/features/gallery/hooks/useNextPrevImage.ts @@ -93,10 +93,10 @@ export const nextPrevImageButtonsSelector = createMemoizedSelector( ? imagesSelectors.selectById(data, prevImageId) : undefined; const topImage = topImageId - ? selectors.selectById(data, topImageId) + ? imagesSelectors.selectById(data, topImageId) : undefined; const bottomImage = bottomImageId - ? selectors.selectById(data, bottomImageId) + ? imagesSelectors.selectById(data, bottomImageId) : undefined; const imagesLength = images.length;