mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
fix: tables with custom views.
This commit is contained in:
@@ -31,9 +31,9 @@ function InvoiceViewTabs({
|
||||
}));
|
||||
|
||||
// Handle tab change.
|
||||
const handleTabsChange = (customView) => {
|
||||
const handleTabsChange = (customViewId) => {
|
||||
setInvoicesTableState({
|
||||
customViewId: customView.id || null,
|
||||
customViewId: customViewId || null,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -46,7 +46,7 @@ function InvoiceViewTabs({
|
||||
<Navbar className={'navbar--dashboard-views'}>
|
||||
<NavbarGroup align={Alignment.LEFT}>
|
||||
<DashboardViewsTabs
|
||||
customViewId={invoicesTableState.customViewId}
|
||||
currentViewId={invoicesTableState.customViewId}
|
||||
resourceName={'invoices'}
|
||||
tabs={tabs}
|
||||
onNewViewTabClick={handleClickNewView}
|
||||
|
||||
Reference in New Issue
Block a user