-
Notifications
You must be signed in to change notification settings - Fork 31
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
[4.1.x][6518] Level Descriptor being counted as children, also ...X more items button not working when publishing #3694
[4.1.x][6518] Level Descriptor being counted as children, also ...X more items button not working when publishing #3694
Conversation
…ating optionsByPath to fetch children #6518
@@ -210,9 +210,9 @@ export default [ | |||
optionsByPath = { | |||
...optionsByPath, | |||
...createPresenceTable(expanded, (value) => ({ | |||
...createGetChildrenOptions(chunk, pluckProps(payload, true, 'limit', 'excludes')), |
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.
Those are the global options for children, they need to go before the specific options per path
… rendered at the beginning of the view (on each page) #6491
if (children.levelDescriptor) { | ||
chunk.childrenByParentPath[parentPath].push(children.levelDescriptor.path); | ||
chunk.totalByPath[children.levelDescriptor.path] = 0; | ||
} | ||
children.forEach((item) => { |
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.
This was causing the children to be rendered before the levelDescriptor in some scenarios.
craftercms/craftercms#6518