mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
fix: tables with custom views.
This commit is contained in:
@@ -44,9 +44,9 @@ function ReceiptActionsBar({
|
||||
};
|
||||
|
||||
// Handle the active tab change.
|
||||
const handleTabChange = (viewId) => {
|
||||
const handleTabChange = (customView) => {
|
||||
setReceiptsTableState({
|
||||
csutomViewId: viewId.id || null,
|
||||
customViewId: customView.id || null,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -27,9 +27,9 @@ function ReceiptViewTabs({
|
||||
}));
|
||||
|
||||
// Handles the active tab chaning.
|
||||
const handleTabsChange = (customView) => {
|
||||
const handleTabsChange = (customViewId) => {
|
||||
setReceiptsTableState({
|
||||
customViewId: customView.id || null,
|
||||
customViewId: customViewId || null,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -37,7 +37,7 @@ function ReceiptViewTabs({
|
||||
<Navbar className={'navbar--dashboard-views'}>
|
||||
<NavbarGroup align={Alignment.LEFT}>
|
||||
<DashboardViewsTabs
|
||||
initialViewId={receiptTableState.customViewId}
|
||||
currentViewId={receiptTableState.customViewId}
|
||||
tabs={tabs}
|
||||
resourceName={'receipts'}
|
||||
onChange={handleTabsChange}
|
||||
|
||||
Reference in New Issue
Block a user