mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
fix: Correctly navigate the user to the latest academic year when no data exists for the school
This commit is contained in:
parent
6a24d4fa23
commit
197ccdfeb3
1 changed files with 1 additions and 1 deletions
|
|
@ -52,6 +52,6 @@ class HomeController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
academic_year.range || AcademicYear.order("range DESC").first.range
|
||||
academic_year&.range || AcademicYear.order("range DESC").first.range
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue