Skip to content

fix: translation of components containing private fields - #543

Open
breezertwo wants to merge 1 commit into
Fekide:nextfrom
breezertwo:fix/invalid-key-error-dynamic-zones
Open

breezertwo wants to merge 1 commit into
Fekide:nextfrom
breezertwo:fix/invalid-key-error-dynamic-zones

Conversation

@breezertwo

Copy link
Copy Markdown

Suggested fix for #542

Explicitly selecting private component fields causes Strapi to reject translation queries with Invalid key <field>.

This PR removes the generated component fields lists and uses Strapis Document Service default selection, preserving required private values and existing nested population rules.

I validated the changes against my local strapi, added some dedicated tests & and all other tests still pass.
The five modified tests had to drop the removed fields key.

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.

1 participant