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

Mismatch between numberOfPosts attribute and size of Posts attribute can cause posts to disappear in the admin #275

Open
mogmarsh opened this issue Jan 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mogmarsh
Copy link
Collaborator

Description of the bug

If the numberOfPosts attribute is set to 3 but the posts attribute is [123,456,789,null] (4 slots), a post will get backfilled into the 4th slot, but not show up in the editor. It may show up on the front end in a different spot. This bug does not seem to affect the front end.

Steps To Reproduce

add a query block, manually change the attributes so there is a mismatch (there may be a way to do it through the GUI, but I don't know if there is).
Add an additional query block
Watch the requests to the rest API, you will see 4 posts are requested, but the 4th one will never appear in the editor.
Fix the mismatch, you should see the missing post.

Additional Information

No response

@mogmarsh mogmarsh added the bug Something isn't working label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant