@@ -24,7 +24,7 @@ import { UseRegisterShortcutProvider } from '@Common/Hooks'
2424
2525import { NO_ROWS_OR_GET_ROWS_ERROR } from './constants'
2626import TableContent from './TableContent'
27- import { FiltersTypeEnum , InternalTableProps , PaginationEnum , RowsResultType } from './types'
27+ import { FiltersTypeEnum , InternalTableProps , RowsResultType } from './types'
2828import { getFilteringPromise , searchAndSortRows } from './utils'
2929
3030const InternalTable = <
@@ -79,8 +79,6 @@ const InternalTable = <
7979
8080 const wrapperDivRef = useRef < HTMLDivElement > ( null )
8181
82- const { setIdentifiers } = bulkSelectionReturnValue ?? { }
83-
8482 const searchSortTimeoutRef = useRef < number > ( - 1 )
8583
8684 useEffect ( ( ) => {
@@ -182,26 +180,6 @@ const InternalTable = <
182180
183181 const areFilteredRowsLoading = _areFilteredRowsLoading || filteredRowsError === NO_ROWS_OR_GET_ROWS_ERROR
184182
185- const visibleRows = useMemo ( ( ) => {
186- const normalizedFilteredRows = filteredRows ?? [ ]
187-
188- const paginatedRows =
189- paginationVariant !== PaginationEnum . PAGINATED
190- ? normalizedFilteredRows
191- : normalizedFilteredRows . slice ( offset , offset + pageSize )
192-
193- return paginatedRows
194- } , [ paginationVariant , offset , pageSize , filteredRows ] )
195-
196- useEffect ( ( ) => {
197- setIdentifiers ?.(
198- visibleRows . reduce ( ( acc , row ) => {
199- acc [ row . id ] = row
200- return acc
201- } , { } ) ,
202- )
203- } , [ visibleRows ] )
204-
205183 const Wrapper = ViewWrapper ?? Fragment
206184
207185 const renderContent = ( ) => {
0 commit comments