diff --git a/app/models/communication/extranet.rb b/app/models/communication/extranet.rb index f4ea7452ad7d6c0e5ef7bc946e0a2eff6d20cd67..8255e487b066b904008074089d7af8a3a16ceee0 100644 --- a/app/models/communication/extranet.rb +++ b/app/models/communication/extranet.rb @@ -59,7 +59,7 @@ class Communication::Extranet < ApplicationRecord def should_show_years? # For a single program, year is like cohort - return false if about&.is_a? Education::Program + return false if about.nil? || about&.is_a? Education::Program # if a school has a single program, same thing about&.programs&.many? end