fix js errors
This commit is contained in:
committed by
Pete Matsyburka
parent
c56f8cb38f
commit
7080e8ea33
@@ -4,7 +4,9 @@ class TemplateDocumentsController < ApplicationController
|
||||
load_and_authorize_resource :template
|
||||
|
||||
def create
|
||||
return head :unprocessable_entity if params[:blobs].blank? && params[:files].blank?
|
||||
if params[:blobs].blank? && params[:files].blank?
|
||||
return render json: { error: 'File is missing' }, status: :unprocessable_entity
|
||||
end
|
||||
|
||||
old_fields_hash = @template.fields.hash
|
||||
|
||||
|
||||
Reference in New Issue
Block a user