fix: tables with custom views.

This commit is contained in:
a.bouhuolia
2021-02-21 14:21:07 +02:00
parent df2d215071
commit 4fe00d59d8
20 changed files with 44 additions and 58 deletions

View File

@@ -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}