|
@@ -642,9 +642,7 @@ const stageIm = (function () {
|
|
|
for (const d of datas) {
|
|
|
const detail = _.find(details, {uuid: d.uuid});
|
|
|
if (detail) {
|
|
|
- _.assignIn(detail, d, function (oV, sV, key) {
|
|
|
- return imFields.indexOf(key) > -1 && !_.isUndefined(sV) ? sV : oV;
|
|
|
- });
|
|
|
+ _.assignIn(detail, d);
|
|
|
} else {
|
|
|
details.push(d);
|
|
|
}
|
|
@@ -661,7 +659,7 @@ const stageIm = (function () {
|
|
|
}
|
|
|
if (imData) {
|
|
|
_.assignInWith(imData, d, function (oV, sV, key) {
|
|
|
- return imFields.indexOf(key) > -1 && !_.isUndefined(sV) ? sV : oV;
|
|
|
+ return imFields.indexOf(key) > -1 && !_.isUndefined(sV) && !_.isNull(sV) ? sV : oV;
|
|
|
});
|
|
|
}
|
|
|
}
|