mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 22:50:20 +08:00
[firestore] Correctly handle undefined values
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user