[firestore] Correctly handle `undefined` values
This commit is contained in:
parent
8c56ba6c7a
commit
c3d44d6c74
|
@ -40,7 +40,7 @@ const buildNativeArray = (array: Object[]): any[] => {
|
|||
const buildTypeMap = (value: any): any => {
|
||||
const typeMap = {};
|
||||
const type = typeOf(value);
|
||||
if (value === null) {
|
||||
if (value === null || value === undefined) {
|
||||
typeMap.type = 'null';
|
||||
typeMap.value = null;
|
||||
} else if (value === DELETE_FIELD_VALUE) {
|
||||
|
|
Loading…
Reference in New Issue