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

@@ -42,10 +42,8 @@ function VendorActionsBar({
};
// Handle the active tab change.
const handleTabChange = (viewId) => {
setVendorsTableState({
customViewId: viewId.id || null,
});
const handleTabChange = (customView) => {
setVendorsTableState({ customViewId: customView.id || null });
};
return (

View File

@@ -40,7 +40,7 @@ function VendorViewsTabs({
<Navbar className="navbar--dashboard-views">
<NavbarGroup align={Alignment.LEFT}>
<DashboardViewsTabs
customViewId={vendorsTableState.customViewId}
currentViewId={vendorsTableState.customViewId}
resourceName={'vendors'}
tabs={tabs}
onChange={handleTabsChange}