mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix: tables with custom views.
This commit is contained in:
@@ -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