mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
fix: Correctly navigate the user to the latest academic year when no data exists for the school
This commit is contained in:
parent
41d942c214
commit
934f2d7f30
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