From d3f94a05b3ca9146e131c9e1154383eb0da46aef Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Tue, 28 Jul 2026 09:34:02 +0900 Subject: [PATCH] =?UTF-8?q?260728=5F01=5FENH:=20=EC=A7=9C=EC=9E=98?= =?UTF-8?q?=ED=95=9C=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- registry/components/data-table/hooks/usePagination.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ba09e3c..bf7bc7e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kri-ui-registry", - "version": "0.9.2", + "version": "0.9.3", "private": true, "description": "KRI internal shadcn UI registry", "scripts": { diff --git a/registry/components/data-table/hooks/usePagination.ts b/registry/components/data-table/hooks/usePagination.ts index e64920d..67b34d7 100644 --- a/registry/components/data-table/hooks/usePagination.ts +++ b/registry/components/data-table/hooks/usePagination.ts @@ -15,7 +15,7 @@ export function usePagination({ currentPage, totalPages, paginationItemsToDispla const visibleCount = Math.max(1, paginationItemsToDisplay) const half = Math.floor(visibleCount / 2) let startPage = Math.max(1, currentPage - half) - let endPage = Math.min(totalPages, startPage + visibleCount - 1) + const endPage = Math.min(totalPages, startPage + visibleCount - 1) if (endPage - startPage + 1 < visibleCount) { startPage = Math.max(1, endPage - visibleCount + 1)