When a production order was deleted from an employee and in the time registration, the sub-assembly was not emptied

When a production order and sub-assembly are filled in for an employee on the 'Time Registration' tab in the 'Default Time Registration Data' section, this data is automatically populated when creating a time registration line. However, when the production order was deleted from both the employee and the time registration, the sub-assembly was not emptied.