diff --git a/src/frontend/src/tables/build/BuildLineTable.tsx b/src/frontend/src/tables/build/BuildLineTable.tsx index 36e0e6db0b..25a506c644 100644 --- a/src/frontend/src/tables/build/BuildLineTable.tsx +++ b/src/frontend/src/tables/build/BuildLineTable.tsx @@ -636,14 +636,14 @@ export default function BuildLineTable({ }, quantity: {} }, - table: table + onFormSuccess: table.refreshTable }); const deleteAllocation = useDeleteApiFormModal({ url: ApiEndpoints.build_item_list, pk: selectedAllocation, title: t`Delete Stock Allocation`, - table: table + onFormSuccess: table.refreshTable }); const [partsToOrder, setPartsToOrder] = useState([]); @@ -870,6 +870,8 @@ export default function BuildLineTable({ */ const formatRecords = useCallback( (records: any[]): any[] => { + console.log('format records:', records); + return records.map((record) => { let allocations = [...record.allocations];