mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	[UI] Fix BuildLineTable (#10707)
- Closes https://github.com/inventree/InvenTree/issues/10700
This commit is contained in:
		| @@ -636,14 +636,14 @@ export default function BuildLineTable({ | |||||||
|       }, |       }, | ||||||
|       quantity: {} |       quantity: {} | ||||||
|     }, |     }, | ||||||
|     table: table |     onFormSuccess: table.refreshTable | ||||||
|   }); |   }); | ||||||
|  |  | ||||||
|   const deleteAllocation = useDeleteApiFormModal({ |   const deleteAllocation = useDeleteApiFormModal({ | ||||||
|     url: ApiEndpoints.build_item_list, |     url: ApiEndpoints.build_item_list, | ||||||
|     pk: selectedAllocation, |     pk: selectedAllocation, | ||||||
|     title: t`Delete Stock Allocation`, |     title: t`Delete Stock Allocation`, | ||||||
|     table: table |     onFormSuccess: table.refreshTable | ||||||
|   }); |   }); | ||||||
|  |  | ||||||
|   const [partsToOrder, setPartsToOrder] = useState<any[]>([]); |   const [partsToOrder, setPartsToOrder] = useState<any[]>([]); | ||||||
| @@ -870,6 +870,8 @@ export default function BuildLineTable({ | |||||||
|    */ |    */ | ||||||
|   const formatRecords = useCallback( |   const formatRecords = useCallback( | ||||||
|     (records: any[]): any[] => { |     (records: any[]): any[] => { | ||||||
|  |       console.log('format records:', records); | ||||||
|  |  | ||||||
|       return records.map((record) => { |       return records.map((record) => { | ||||||
|         let allocations = [...record.allocations]; |         let allocations = [...record.allocations]; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user