diff --git a/packages/admin-next/dashboard/src/routes/categories/category-list/components/category-list-table/category-list-table.tsx b/packages/admin-next/dashboard/src/routes/categories/category-list/components/category-list-table/category-list-table.tsx index 0aae05dc54c58..4eb7d3d830a5a 100644 --- a/packages/admin-next/dashboard/src/routes/categories/category-list/components/category-list-table/category-list-table.tsx +++ b/packages/admin-next/dashboard/src/routes/categories/category-list/components/category-list-table/category-list-table.tsx @@ -57,6 +57,9 @@ export const CategoryListTable = () => { pageSize: PAGE_SIZE, }) + const showRankingAction = + !!product_categories && product_categories.length > 0 + if (isError) { throw error } @@ -71,9 +74,11 @@ export const CategoryListTable = () => {
- + {showRankingAction && ( + + )}