Fix crashing on creating a record with fields of type link or options due to coercing values
This commit is contained in:
parent
fa1836ad23
commit
917bf47925
|
@ -306,6 +306,16 @@ function coerceRecordValues(rec, model) {
|
|||
}
|
||||
|
||||
const TYPE_TRANSFORM_MAP = {
|
||||
link: {
|
||||
"": [],
|
||||
[null]: [],
|
||||
[undefined]: undefined,
|
||||
},
|
||||
options: {
|
||||
"": "",
|
||||
[null]: "",
|
||||
[undefined]: undefined,
|
||||
},
|
||||
string: {
|
||||
"": "",
|
||||
[null]: "",
|
||||
|
|
Loading…
Reference in New Issue