@mailstep/design-system 0.5.0-beta.36 → 0.5.0-beta.37
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/package.json +1 -1
- package/ui/Blocks/CommonGrid/CommonGridContainer.js +1 -1
- package/ui/index.es.js +6713 -6706
- package/ui/index.umd.js +315 -315
package/package.json
CHANGED
|
@@ -46,7 +46,7 @@ var StyledCommonGrid = function (props) {
|
|
|
46
46
|
var _b = useGetGridHeight(), gridHeight = _b.gridHeight, gridRef = _b.gridRef, paginationRef = _b.paginationRef;
|
|
47
47
|
useEffect(function () {
|
|
48
48
|
var _a;
|
|
49
|
-
if (
|
|
49
|
+
if (gridHeight && gridHeight > 0) {
|
|
50
50
|
// Only main grids (without form grids on new pages)
|
|
51
51
|
var numberOfRows = Math.max(Math.floor(gridHeight / rowHeight - 2), GRID_MIN_ROWS);
|
|
52
52
|
numberOfRows && ((_a = gridActions.setRowsPerPage) === null || _a === void 0 ? void 0 : _a.call(gridActions, numberOfRows));
|