Fixed nil object error on Meals page
This commit is contained in:
parent
310f2f3d46
commit
be50d165b3
@ -804,7 +804,7 @@ class ConferencesController < ApplicationController
|
||||
@time = nil
|
||||
@length = 1.5
|
||||
when :meals
|
||||
@meals = Hash[@this_conference.meals.map{ |k, v| [k.to_i, v] }].sort.to_h
|
||||
@meals = Hash[(@this_conference.meals || {}).map{ |k, v| [k.to_i, v] }].sort.to_h
|
||||
when :workshop_times
|
||||
get_block_data
|
||||
@workshop_blocks << {
|
||||
|
Loading…
x
Reference in New Issue
Block a user