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

Image list blade is sometimes empty #754

Open
j-mok opened this issue Nov 4, 2024 · 0 comments
Open

Image list blade is sometimes empty #754

j-mok opened this issue Nov 4, 2024 · 0 comments

Comments

@j-mok
Copy link
Contributor

j-mok commented Nov 4, 2024

This is an intermittent problem, observed by us and our clients, but reproduction steps are still unknown to us. The issue manifests with an empty grid in the images blade, even though images exist for a given item. Here's an example:
image

We've discovered that this is a local issue, happening when there is a ui-grid on the blade with pagination enabled (ui-grid-pagination) and the browser somehow saves an empty object as pagination state for that blade. Here's an example of such an entry in the page's local storage:
image
The empty pagination state object results in paginationCurrentPage and paginationPageSize becoming undefined when pagination state is restored. Next, these undefined values mess up calculations in pagination processing where the final slice() yields empty array and thus the grid displays no results.

This is what we've been able to figure out so far, but still don't know how the empty pagination state object ended up in page's local storage in the first place. Normally this is not happening when pagination is enabled, pagination parameters paginationCurrentPage and paginationPageSize are stored as expected, but every now and then this process is distorted. One thing that comes to mind is that the code unexpectedly enters this branch when saving pagination state, but I have no idea how.

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

No branches or pull requests

1 participant