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

Sanity check for the file id in the toFiles method #6318

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

bastianallgeier
Copy link
Member

@bastianallgeier bastianallgeier commented Mar 1, 2024

This PR …

Branko sent me an issue in the Zero One theme, which boilt down to the toFiles method not properly checking for usable file ids. I think that this is a patch that's useful for a lot of cases. If the toFiles method is used on a field with yaml content, but the yaml array does actually have child arrays in each item, this would always break the entire site without the patch in the PR.

Fixes

  • More stability for the toFiles method by checking for valid file IDs

Breaking changes

None

For review team

  • Add changes & docs to release notes draft in Notion

@bastianallgeier bastianallgeier added this to the 4.1.2 milestone Mar 1, 2024
@bastianallgeier bastianallgeier requested a review from a team March 1, 2024 12:43
@distantnative distantnative merged commit b6ebf92 into develop-patch Mar 1, 2024
12 checks passed
@distantnative distantnative deleted the fix/unstable-to-files-method branch March 1, 2024 19:03
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