|  |  | @ -64,6 +64,7 @@ class StartFormController < ApplicationController | 
			
		
	
		
		
			
				
					
					|  |  |  |                                         .or(template.submissions.where(expire_at: nil)).where(archived_at: nil)) |  |  |  |                                         .or(template.submissions.where(expire_at: nil)).where(archived_at: nil)) | 
			
		
	
		
		
			
				
					
					|  |  |  |              .order(id: :desc) |  |  |  |              .order(id: :desc) | 
			
		
	
		
		
			
				
					
					|  |  |  |              .where(declined_at: nil) |  |  |  |              .where(declined_at: nil) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |              .where(external_id: nil) | 
			
		
	
		
		
			
				
					
					|  |  |  |              .then { |rel| params[:resubmit].present? ? rel.where(completed_at: nil) : rel } |  |  |  |              .then { |rel| params[:resubmit].present? ? rel.where(completed_at: nil) : rel } | 
			
		
	
		
		
			
				
					
					|  |  |  |              .find_or_initialize_by(**submitter_params.compact_blank) |  |  |  |              .find_or_initialize_by(**submitter_params.compact_blank) | 
			
		
	
		
		
			
				
					
					|  |  |  |   end |  |  |  |   end | 
			
		
	
	
		
		
			
				
					|  |  | 
 |