flamerest 1.0.53 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/REST.js +1 -1
- package/package.json +1 -1
package/REST.js
CHANGED
|
@@ -574,7 +574,7 @@ class FLAMEREST {
|
|
|
574
574
|
if (!values.hasOwnProperty(prop)) continue;
|
|
575
575
|
|
|
576
576
|
// объекты проходим рекурсивно
|
|
577
|
-
if (typeof values[prop] === 'object' && typeof object[prop] === 'object') { this.fillObject(object[prop], values[prop]); continue }
|
|
577
|
+
if (typeof values[prop] === 'object' && typeof object[prop] === 'object' && values[prop] !== null && typeof object[prop] !== null) { this.fillObject(object[prop], values[prop]); continue }
|
|
578
578
|
|
|
579
579
|
// тут остались все обычные типы - записываем
|
|
580
580
|
object[prop] = values[prop];
|