Skip to content

fix(skeleton): include line item children recursively#3753

Open
martin-pettersson wants to merge 2 commits intoShopify:mainfrom
martin-pettersson:main
Open

fix(skeleton): include line item children recursively#3753
martin-pettersson wants to merge 2 commits intoShopify:mainfrom
martin-pettersson:main

Conversation

@martin-pettersson
Copy link
Copy Markdown

It seems to me that the children variable in the if statement shadows the returned children and thus prevents children to be included recursively.
This is not tested in any way it just seemed to me that the intention is to include line item children recursively.

Rename local variable shadowing line item children to include children
recursively.
@martin-pettersson martin-pettersson requested a review from a team as a code owner May 4, 2026 01:26
@shopify
Copy link
Copy Markdown
Contributor

shopify Bot commented May 4, 2026

Oxygen deployed a preview of your main branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment May 5, 2026 2:52 PM
metaobjects ✅ Successful (Logs) Preview deployment Inspect deployment May 4, 2026 1:27 AM
third-party-queries-caching ✅ Successful (Logs) Preview deployment Inspect deployment May 4, 2026 1:27 AM
classic-remix ✅ Successful (Logs) Preview deployment Inspect deployment May 4, 2026 1:27 AM
custom-cart-method ✅ Successful (Logs) Preview deployment Inspect deployment May 4, 2026 1:27 AM
sitemap ✅ Successful (Logs) Preview deployment Inspect deployment May 4, 2026 1:27 AM

Learn more about Hydrogen's GitHub integration.

@martin-pettersson
Copy link
Copy Markdown
Author

I have signed the CLA!

Copy link
Copy Markdown
Collaborator

@andguy95 andguy95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch @martin-pettersson !

Code looks good. Please do create a changeset for the skeleton template so the hydrogen cli gets this latest change on newly scaffolded projects

@martin-pettersson martin-pettersson requested a review from andguy95 May 4, 2026 22:55
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

Successfully merging this pull request may close these issues.

2 participants