Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix filter tab saving

dominik-zeglendef77f7adebd
diff --git a/saleor/static/dashboard-next/products/views/ProductList/ProductList.tsx b/saleor/static/dashboard-next/products/views/ProductList/ProductList.tsx
index ba43b9e852..5b589e3baa 100644
--- a/saleor/static/dashboard-next/products/views/ProductList/ProductList.tsx
+++ b/saleor/static/dashboard-next/products/views/ProductList/ProductList.tsx
@@ -131,7 +131,7 @@ export const ProductList: React.StatelessComponent<ProductListProps> = ({
const handleFilterTabSave = (data: SaveFilterTabDialogFormData) => {
saveFilterTab(data.name, getActiveFilters(params));
- handleTabChange(tabs.length);
+ handleTabChange(tabs.length + 1);
};
const paginationState = createPaginationState(PAGINATE_BY, params);