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
There are 3 related issues when a JSONB field contains a non-null but empty object ([] or {}).
1/ It is rendered as - on show view:
2/ It is rendered as null on edit view:
3/ When saving the form, even though I have not modified anything, instead of keeping the original value it tries to assign the value null, which breaks my non-null DB constraint and throws an error.
Instead, it should render the empty array or empty object, as below:
There are 3 related issues when a JSONB field contains a non-null but empty object (
[]
or{}
).1/ It is rendered as
-
on show view:2/ It is rendered as
null
on edit view:3/ When saving the form, even though I have not modified anything, instead of keeping the original value it tries to assign the value
null
, which breaks my non-null DB constraint and throws an error.Instead, it should render the empty array or empty object, as below:
My code:
(+ using workaround described in #1 (comment))
Using administrate-field-jsonb 0.4.1.
The text was updated successfully, but these errors were encountered: