Fix an issue in MongoTransform where transforming object type fields with null values fails (#2029)
This commit is contained in:
@@ -209,7 +209,7 @@ function arrayContains(arr, item) {
|
||||
|
||||
// Normalizes a JSON object.
|
||||
function normalize(obj) {
|
||||
if (typeof obj !== 'object') {
|
||||
if (obj === null || typeof obj !== 'object') {
|
||||
return JSON.stringify(obj);
|
||||
}
|
||||
if (obj instanceof Array) {
|
||||
|
||||
Reference in New Issue
Block a user