When creating a new box, in select existing samples mode or upload CSV mode if there is an error in the form (for example if the user doesn't select a purpose or a media) the information about the samples is lost. This provokes that the user needs to define all the information about the batches/samples again, from scratch.
Before saving:

After saving:

This does not happen in select samples from inventory mode, where the information is correctly kept.
We should keep the information of the work done in the form in these other two modes as well.