@meduza/ui-kit-2 0.1.47 → 0.1.48

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.
@@ -1744,11 +1744,11 @@ var GroupedBlock = function GroupedBlock(_ref) {
1744
1744
  onlyOn = _ref.block.only_on,
1745
1745
  styleContext = _ref.styleContext;
1746
1746
  var maxHeight = Math.min.apply(Math, block.data.map(function (item) {
1747
- return item.data && item.data.height || item.item.data.height;
1747
+ return item.data && item.data.height || item.item && item.item.data.height;
1748
1748
  }));
1749
1749
  var normalizedBoxesWidth = block.data.map(function (item) {
1750
- var width = item.data && item.data.width || item.item.data.heigh;
1751
- var height = item.data && item.data.height || item.item.data.heigh;
1750
+ var width = item.data && item.data.width || item.item && item.item.data.heigh;
1751
+ var height = item.data && item.data.height || item.item && item.item.data.heigh;
1752
1752
  return width / (height / maxHeight);
1753
1753
  });
1754
1754
  var sumWidth = normalizedBoxesWidth.reduce(function (sum, x) {