Fixed error on Schedule page

This commit is contained in:
Godwin 2016-08-18 09:03:51 -07:00 committed by GitHub
parent 3940a0b0cc
commit 6b07685e47

View File

@ -547,7 +547,7 @@ class ApplicationController < LinguaFrancaApplicationController
end
last_event = time
end
@schedule[day][:num_locations] = data[:locations].size
@schedule[day][:num_locations] = (data[:locations] || []).size
end
@schedule.deep_dup.each do | day, data |