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

[4.1.x][6518] Level Descriptor being counted as children, also ...X more items button not working when publishing #3694

Merged
merged 4 commits into from
Feb 12, 2024

Conversation

jvega190
Copy link
Member

@jvega190 jvega190 commented Feb 8, 2024

@jvega190 jvega190 requested a review from rart as a code owner February 8, 2024 20:30
@@ -210,9 +210,9 @@ export default [
optionsByPath = {
...optionsByPath,
...createPresenceTable(expanded, (value) => ({
...createGetChildrenOptions(chunk, pluckProps(payload, true, 'limit', 'excludes')),
Copy link
Member Author

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

if (children.levelDescriptor) {
chunk.childrenByParentPath[parentPath].push(children.levelDescriptor.path);
chunk.totalByPath[children.levelDescriptor.path] = 0;
}
children.forEach((item) => {
Copy link
Member Author

@jvega190 jvega190 Feb 12, 2024

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.

@jvega190 jvega190 requested a review from rart February 12, 2024 15:31
@sumerjabri sumerjabri merged commit 94d778b into craftercms:support/4.1.x Feb 12, 2024
1 of 2 checks passed
@jvega190 jvega190 deleted the bugfix/4.1.x/6518 branch April 30, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants