-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
fix: order when loading more than 10 relations #21855
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see an issue when trying to save after reordering unsaved relations
CleanShot.2024-10-17.at.12.28.24.mp4
will take a look! good catch |
@remidej I am not being able to replicate your issue (using the same content types and relation) , do you have any API error or cli error? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not seeing my error again after doing the same actions. Weird! Looks like I messed up something last time. Looks all good now
What does it do?
Fix loading more than 2 pages of relations in the content manager.
Relations are assigned a temp_key value based on their order (a0, a1, ..., z1, z2) . Each time a page was loaded the new temp keys were based from the first temp key of the list (a0), but that same value was used to compute the temp keys for the 3rd , ... pages. So the order was messed up.
How to test it?
Load more than 10 relations in a relational field.
Related issue(s)/PR(s)
Fixes #21808