[firestore] Correctly handle `undefined` values

This commit is contained in:
Chris Bianca 2017-10-13 09:05:57 +01:00
parent 8c56ba6c7a
commit c3d44d6c74
1 changed files with 1 additions and 1 deletions

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