Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: Load More button disappears when it shouldn't #6406

Closed
1 task done
magnusviri opened this issue May 20, 2024 · 1 comment · Fixed by #6527
Closed
1 task done

[bug]: Load More button disappears when it shouldn't #6406

magnusviri opened this issue May 20, 2024 · 1 comment · Fixed by #6527
Labels
bug Something isn't working gallery

Comments

@magnusviri
Copy link
Contributor

Is there an existing issue for this problem?

  • I have searched the existing issues

Operating system

macOS

GPU vendor

Apple Silicon (MPS)

GPU model

MacBook Air M1 2020

GPU VRAM

16GB

Version number

v4.2.1

Browser

Brave

Python dependencies

No response

What happened

I deleted all of my images in image browser and the "Load More" button continually updated until it said it was showing 1 out of 52 ("1/52"). After I deleted the last image in the image browser the "Load More" button simply disappeared instead of showing "0/51". After reloading the web page, it then correctly showed "51/51". See images.

Screenshot 2024-05-19 at 23 02 24

Delete image

Screenshot 2024-05-19 at 23 02 29

Reload

Screenshot 2024-05-19 at 23 02 33

What you expected to happen

It should have shown 0/51 when I deleted the 1/52 image in the image browser.

How to reproduce the problem

Generate a lot of images so that it shows the "Load More" button. Then delete all the images on the first page.

Additional context

No response

Discord username

magnusviri

@magnusviri magnusviri added the bug Something isn't working label May 20, 2024
@psychedelicious
Copy link
Collaborator

This is a problem with the convoluted infinite scroll implementation, which is on its way out. Refreshing syncs the frontend state with the backend and is the solution until we redo the gallery pagination.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gallery
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants