From b8a78de4c36b076ddffb44b0960c47586f9b360c Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Tue, 7 Nov 2017 11:14:27 +0800 Subject: [PATCH] bugfix --- lib/builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder.rb b/lib/builder.rb index 9617ade9..d328e086 100644 --- a/lib/builder.rb +++ b/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|