If the line item form has compute mode enabled, the line items will be linked when the second form is submitted, not when the compute button is clicked. This is the intended behavior.
Compute mode and linked records line items.
Updated over a week ago