Angus McLeod 7 년 전
부모
커밋
b8a78de4c3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/builder.rb

+ 1 - 1
lib/builder.rb

@@ -61,7 +61,7 @@ class CustomWizard::Builder
                 params[:value] = submission[f['id']] if submission[f['id']]
               end
 
-              if s['actions'].any?
+              if s['actions'] && s['actions'].any?
                 profile_actions = s['actions'].select { |a| a['type'] === 'update_profile' }
                 if profile_actions.any?
                   profile_actions.each do |action|