2
0
mirror of synced 2025-01-23 04:39:49 +00:00

[firestore] Correctly handle undefined values

This commit is contained in:
Chris Bianca 2017-10-13 09:05:57 +01:00
parent 8c56ba6c7a
commit c3d44d6c74

View File

@ -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) {