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

Exclude "content" or "_predefined_fields" from the serialized object #872

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cn1c0
Copy link

@cn1c0 cn1c0 commented Dec 11, 2024

Description

It seems to work properly in my environment but I'm not familiar enough with the code base to know if that the right solution.

@Rom1-B Rom1-B requested review from stonebuzz and Rom1-B December 12, 2024 07:10
Comment on lines +969 to +971
if (item.name === "content" || item.name === "_predefined_fields") {
return obj;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

With this,
Fields named content or _predefined_fields are ignored. This means that these fields will not be included in the final object.

However, they can be used in conditions to hide a block.

image

Without this fields, condition can't be check

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.

Redirection back to homepage when filing up a ticket with a big template
2 participants