feat(medusa, admin-ui): increase tree depth + scope categories on store + allow categories relation in products API (#3450)
What: - increase tree depth in react nestable - scope categories on store queries - allow categories relation in products API RESOLVES CORE-1238 RESOLVES CORE-1237 RESOLVES CORE-1236
This commit is contained in:
@@ -78,6 +78,10 @@ function ProductCategoriesList(props: ProductCategoriesListProps) {
|
||||
items={categories}
|
||||
onChange={onItemDrop}
|
||||
childrenProp="category_children"
|
||||
// Adding an unreasonably high number here to prevent us from
|
||||
// setting a hard limit on category depth. This should be decided upon
|
||||
// by consumers of medusa after considering the pros and cons to the approach
|
||||
maxDepth={99}
|
||||
renderItem={({ item, depth, handler, collapseIcon }) => (
|
||||
<ProductCategoryListItemDetails
|
||||
item={item}
|
||||
|
||||
Reference in New Issue
Block a user