You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a Sign has a signType, and you then do .update or update it through REST API, then that value will be cleared. Same thing happens if it has other relationships.
I've tried with eager set to false, and with set to true, and it still happens.
So currently from the frontend I need to add all of the related fields and add them as hidden inputs and send them in my form data.
Expected behavior
Since it's an update, no values should be cleared, unless they are sent and set to "" or null.
The text was updated successfully, but these errors were encountered:
Describe the bug
When you do an update to an entity, either via SDK or REST API, all of its belongsTo fields get emptied.
To Reproduce
Steps to reproduce the behavior:
For example, when having these 2 entities:
If a Sign has a signType, and you then do .update or update it through REST API, then that value will be cleared. Same thing happens if it has other relationships.
I've tried with eager set to false, and with set to true, and it still happens.
So currently from the frontend I need to add all of the related fields and add them as hidden inputs and send them in my form data.
Expected behavior
Since it's an update, no values should be cleared, unless they are sent and set to "" or null.
The text was updated successfully, but these errors were encountered: