mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
fix: inconsistance page size of paginated data tables
This commit is contained in:
@@ -20,6 +20,7 @@ import withExpensesActions from './withExpensesActions';
|
||||
import withAlertsActions from '@/containers/Alert/withAlertActions';
|
||||
import withDrawerActions from '@/containers/Drawer/withDrawerActions';
|
||||
import withSettings from '@/containers/Settings/withSettings';
|
||||
import withExpenses from './withExpenses';
|
||||
|
||||
import { ActionsMenu, useExpensesTableColumns } from './components';
|
||||
import { DRAWERS } from '@/constants/drawers';
|
||||
@@ -39,6 +40,9 @@ function ExpensesDataTable({
|
||||
|
||||
// #withSettings
|
||||
expensesTableSize,
|
||||
|
||||
// #withExpenses
|
||||
expensesTableState
|
||||
}) {
|
||||
// Expenses list context.
|
||||
const {
|
||||
@@ -116,6 +120,7 @@ function ExpensesDataTable({
|
||||
sticky={true}
|
||||
onFetchData={handleFetchData}
|
||||
pagination={true}
|
||||
initialPageSize={expensesTableState.pageSize}
|
||||
manualSortBy={true}
|
||||
manualPagination={true}
|
||||
pagesCount={pagination.pagesCount}
|
||||
@@ -147,4 +152,5 @@ export default compose(
|
||||
withSettings(({ expenseSettings }) => ({
|
||||
expensesTableSize: expenseSettings?.tableSize,
|
||||
})),
|
||||
withExpenses(({ expensesTableState }) => ({ expensesTableState }))
|
||||
)(ExpensesDataTable);
|
||||
|
||||
Reference in New Issue
Block a user