Skip to content

Commit

Permalink
added conditions if form data is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
olegphenomenon committed Nov 25, 2021
1 parent 742e72f commit dae8022
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/interactions/actions/domain_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ def validation_dns_key_error
def extensional_dnskeys_data
dnskeys_data = @params[:dns_keys]

return [] if dnskeys_data.empty?

result_container = []

dnskeys_data.each do |ds|
Expand Down

0 comments on commit dae8022

Please sign in to comment.