Skip to content

Commit

Permalink
fix: allow Simple Table to render 1 row as minimum regardless of avai…
Browse files Browse the repository at this point in the history
…lable height (#825)
  • Loading branch information
TCL735 authored Oct 27, 2022
1 parent 5018caa commit e22fbcc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion giraffe/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@influxdata/giraffe",
"version": "2.38.0",
"version": "2.38.1",
"main": "dist/index.js",
"module": "dist/index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion giraffe/src/components/SimpleTable/PagedTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const getNumberOfRowsOnCurrentPage = (
rowIdx++
}

return Math.max(0, rowIdx - paginationOffset)
return Math.max(1, rowIdx - paginationOffset)
}

const subsetResult = (
Expand Down
2 changes: 1 addition & 1 deletion stories/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@influxdata/giraffe-stories",
"version": "2.38.0",
"version": "2.38.1",
"license": "MIT",
"repository": {
"type": "git",
Expand Down

0 comments on commit e22fbcc

Please sign in to comment.