Skip to content

Conversation

@i-just
Copy link
Contributor

@i-just i-just commented Jan 8, 2026

Description

Fixes an issue that occurred on the assets index page when the number of folders was exactly 50, and there were assets on the same level. In such a case, 50 folders were shown, but none of the assets. The pagination (and lazy loading for an assets index modal) is set to kick in at 100, but since the number of items shown on the screen is just 50, it won’t.

The original element query limit is set to 100. We first get the folders (50 in this case) and adjust the element query limit value by subtracting the number of folders. The new limit is now 50, which is what we want. However, a later check to see if we had hit the limit is now incorrectly met, causing us to only return the 50 folders.

If you added one more folder (or removed one), the assets started showing again, and pagination/lazy loading kicked in when going over 100.

Related issues

#18213

@i-just i-just requested a review from brandonkelly January 8, 2026 10:02
@brandonkelly brandonkelly merged commit b95c888 into 4.x Jan 9, 2026
2 checks passed
@brandonkelly brandonkelly deleted the bugfix/18213-assets-index-and-50-folders branch January 9, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants