Unrelated meta data gets saved with default value #6505
Labels
[Feature] Blocks
Overall functionality of blocks
REST API Interaction
Related to REST API
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Milestone
Issue Overview
If you have a block which stores its data in post meta and also registered other post meta for REST API usage, the other post meta gets also updated with the default value.
Steps to Reproduce (for bugs)
Expected Behavior
Only changed meta data should get saved.
Possible Solution
I'm not sure yet if that's a limitation of the REST API and/or if Gutenberg can enhance that behaviour.
Related Issues
Todos
The text was updated successfully, but these errors were encountered: