From 485e4ae1780eeade697903f8babf6849415fb1e7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Oct 2025 14:28:54 +1100 Subject: [PATCH] [UI] Fix BuildLineTable (#10707) (#10708) - Closes https://github.com/inventree/InvenTree/issues/10700 (cherry picked from commit c7593d983f082a717bf4415d0bf192b4cb34bd60) Co-authored-by: Oliver --- src/frontend/src/tables/build/BuildLineTable.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/tables/build/BuildLineTable.tsx b/src/frontend/src/tables/build/BuildLineTable.tsx index b32e768e24..9435e959b3 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];