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