diff --git a/src/components/Table/src/hooks/useTableScroll.ts b/src/components/Table/src/hooks/useTableScroll.ts index 711986fcc16be2c1b572cfdbe702d6c7850bab2c..75e0f30271ad413bb9a84911d69d34e7ba8815a2 100644 --- a/src/components/Table/src/hooks/useTableScroll.ts +++ b/src/components/Table/src/hooks/useTableScroll.ts @@ -91,9 +91,7 @@ export function useTableScroll( // Pager height let paginationHeight = 2; if (!isBoolean(pagination)) { - if (!paginationEl) { - paginationEl = tableEl.querySelector('.ant-pagination') as HTMLElement; - } + paginationEl = tableEl.querySelector('.ant-pagination') as HTMLElement; if (paginationEl) { const offsetHeight = paginationEl.offsetHeight; paginationHeight += offsetHeight || 0;