(2) If the court allows the case to be resubmitted or refiled, it must be resubmitted or refiled by the state within 30 days from the date on which the court enters the order. If the case is not resubmitted or refiled within that time, the defendant shall be released from custody or the release agreement discharged or the security deposit returned. [Amended by 1973 c.836 §180]