mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix single pagers
This commit is contained in:
parent
c9c39c02b6
commit
488bf21925
@ -22,7 +22,7 @@ export const useGalleryPagination = () => {
|
|||||||
if (!count) {
|
if (!count) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return currentPage < pages;
|
return currentPage + 1 < pages;
|
||||||
}, [count, currentPage, pages]);
|
}, [count, currentPage, pages]);
|
||||||
const isPrevEnabled = useMemo(() => {
|
const isPrevEnabled = useMemo(() => {
|
||||||
if (!count) {
|
if (!count) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user