diff --git a/src/Shared/Components/Table/InternalTable.tsx b/src/Shared/Components/Table/InternalTable.tsx index fc93f5203..d179c91a4 100644 --- a/src/Shared/Components/Table/InternalTable.tsx +++ b/src/Shared/Components/Table/InternalTable.tsx @@ -24,7 +24,7 @@ import { UseRegisterShortcutProvider } from '@Common/Hooks' import { NO_ROWS_OR_GET_ROWS_ERROR } from './constants' import TableContent from './TableContent' -import { FiltersTypeEnum, InternalTableProps, PaginationEnum, RowsResultType } from './types' +import { FiltersTypeEnum, InternalTableProps, RowsResultType } from './types' import { getFilteringPromise, searchAndSortRows } from './utils' const InternalTable = < @@ -79,8 +79,6 @@ const InternalTable = < const wrapperDivRef = useRef(null) - const { setIdentifiers } = bulkSelectionReturnValue ?? {} - const searchSortTimeoutRef = useRef(-1) useEffect(() => { @@ -182,26 +180,6 @@ const InternalTable = < const areFilteredRowsLoading = _areFilteredRowsLoading || filteredRowsError === NO_ROWS_OR_GET_ROWS_ERROR - const visibleRows = useMemo(() => { - const normalizedFilteredRows = filteredRows ?? [] - - const paginatedRows = - paginationVariant !== PaginationEnum.PAGINATED - ? normalizedFilteredRows - : normalizedFilteredRows.slice(offset, offset + pageSize) - - return paginatedRows - }, [paginationVariant, offset, pageSize, filteredRows]) - - useEffect(() => { - setIdentifiers?.( - visibleRows.reduce((acc, row) => { - acc[row.id] = row - return acc - }, {}), - ) - }, [visibleRows]) - const Wrapper = ViewWrapper ?? Fragment const renderContent = () => {