@azrico/webobject 1.5.51 → 1.5.52
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.
|
@@ -1518,7 +1518,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
1518
1518
|
var varKeys = ["products", "variations"];
|
|
1519
1519
|
for (var _i = 0, _varKeys = varKeys; _i < _varKeys.length; _i++) {
|
|
1520
1520
|
var vk = _varKeys[_i];
|
|
1521
|
-
if (!(vk in result_object)) continue;
|
|
1521
|
+
if (!(vk in result_object) || (0, _object.array_isEmpty)(result_object[vk])) continue;
|
|
1522
1522
|
/**
|
|
1523
1523
|
* if one product is not valid the result is not valid
|
|
1524
1524
|
* but if all products are valid we still need to check the object itself
|