mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Top level cascade (#7514)
* Add "top_level" filter for PartCategory API endpoint * Update CUI tables * Update PUI table * Similar updates for stock location table * Fix "parent" field label * Bump API version
This commit is contained in:
		| @@ -130,7 +130,8 @@ export function PartCategoryTable({ parentId }: { parentId?: any }) { | ||||
|         props={{ | ||||
|           enableDownload: true, | ||||
|           params: { | ||||
|             parent: parentId | ||||
|             parent: parentId, | ||||
|             top_level: parentId === undefined ? true : undefined | ||||
|           }, | ||||
|           tableFilters: tableFilters, | ||||
|           tableActions: tableActions, | ||||
|   | ||||
| @@ -145,7 +145,8 @@ export function StockLocationTable({ parentId }: { parentId?: any }) { | ||||
|           enableLabels: true, | ||||
|           enableReports: true, | ||||
|           params: { | ||||
|             parent: parentId | ||||
|             parent: parentId, | ||||
|             top_level: parentId === undefined ? true : undefined | ||||
|           }, | ||||
|           tableFilters: tableFilters, | ||||
|           tableActions: tableActions, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user