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
1 changed files with 10 additions and 0 deletions

View File

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