1
0
Fork 0
mirror of synced 2024-07-05 06:20:55 +12:00

Fix crashing on creating a record with fields of type link or options due to coercing values

This commit is contained in:
Andrew Kingston 2020-10-08 10:42:14 +01:00
parent fa1836ad23
commit 917bf47925

View file

@ -306,6 +306,16 @@ function coerceRecordValues(rec, model) {
}
const TYPE_TRANSFORM_MAP = {
link: {
"": [],
[null]: [],
[undefined]: undefined,
},
options: {
"": "",
[null]: "",
[undefined]: undefined,
},
string: {
"": "",
[null]: "",