fix: by default, serialize undefined values as ''
This commit is contained in:
parent
9b905c492a
commit
583a1820d6
1 changed files with 2 additions and 2 deletions
|
|
@ -164,7 +164,7 @@ export const FormatMixin = dedupeMixin(
|
|||
* @returns {String} serializedValue
|
||||
*/
|
||||
serializer(v) {
|
||||
return v;
|
||||
return v !== undefined ? v : '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -175,7 +175,7 @@ export const FormatMixin = dedupeMixin(
|
|||
* @returns {Object} modelValue
|
||||
*/
|
||||
deserializer(v) {
|
||||
return v;
|
||||
return v === undefined ? '' : v;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue