diff --git a/packages/nc-gui/components/smartsheet/grid/usePaginationShortcuts.ts b/packages/nc-gui/components/smartsheet/grid/usePaginationShortcuts.ts index 9eff4121c4..e9f33f385e 100644 --- a/packages/nc-gui/components/smartsheet/grid/usePaginationShortcuts.ts +++ b/packages/nc-gui/components/smartsheet/grid/usePaginationShortcuts.ts @@ -56,9 +56,7 @@ const usePaginationShortcuts = ({ if (!e.altKey) return e.preventDefault() - const page = 1 - - await changePageWithLoading(page) + await changePageWithLoading(getTotalPages()) } const onUp = async (e: KeyboardEvent) => { @@ -67,7 +65,7 @@ const usePaginationShortcuts = ({ if (!e.altKey) return e.preventDefault() - await changePageWithLoading(getTotalPages()) + await changePageWithLoading(1) } return {