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

fix(app-headless-cms-common): push id in the list if no other field exists #4370

Merged

Conversation

brunozoric
Copy link
Contributor

@brunozoric brunozoric commented Nov 8, 2024

Changes

When the user deletes all the fields except rich-text one, the UI generated a GraphQL query with _empty selector, which in turn broke the UI.

The fix is simple: push id field in the field list when no other field exists.

Additionally I found some fields getting queried more than once (check here), probably due to a bad merge, so I removed those.

How Has This Been Tested?

Manually.

@brunozoric brunozoric self-assigned this Nov 8, 2024
@brunozoric brunozoric requested a review from Pavel910 November 8, 2024 09:26
@brunozoric brunozoric marked this pull request as ready for review November 8, 2024 09:36
@brunozoric brunozoric added this to the 5.41.2 milestone Nov 8, 2024
@brunozoric brunozoric merged commit 6ba635c into dev Nov 11, 2024
10 checks passed
@brunozoric brunozoric deleted the bruno/fix/app-headless-cms-common/graphql-breaks-on-no-fields branch November 28, 2024 14:09
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