Skip to content

Commit e22fbcc

Browse files
authored
fix: allow Simple Table to render 1 row as minimum regardless of available height (#825)
1 parent 5018caa commit e22fbcc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

giraffe/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@influxdata/giraffe",
3-
"version": "2.38.0",
3+
"version": "2.38.1",
44
"main": "dist/index.js",
55
"module": "dist/index.js",
66
"license": "MIT",

giraffe/src/components/SimpleTable/PagedTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const getNumberOfRowsOnCurrentPage = (
9898
rowIdx++
9999
}
100100

101-
return Math.max(0, rowIdx - paginationOffset)
101+
return Math.max(1, rowIdx - paginationOffset)
102102
}
103103

104104
const subsetResult = (

stories/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@influxdata/giraffe-stories",
3-
"version": "2.38.0",
3+
"version": "2.38.1",
44
"license": "MIT",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)