Hash Issue when looping through

This is solved! By adding flatten to the last loop…

sub_area_option_item[:items][:option_item].flatten.each do |option_item|

option_item[:name] ← THIS IS WHERE MY CODE BREAKS

end