Skip to content

Commit

Permalink
fixes #72
Browse files Browse the repository at this point in the history
  • Loading branch information
endoooo committed Mar 5, 2024
1 parent a1ae8c8 commit 2c1b30b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ defmodule LantternWeb.CurriculumComponentLive do
_ -> %{}
end

selected_subjects_ids = Map.get(current_filters, :subjects_ids, [])
selected_years_ids = Map.get(current_filters, :years_ids, [])
selected_subjects_ids = Map.get(current_filters, :subjects_ids) || []
selected_years_ids = Map.get(current_filters, :years_ids) || []

selected_subjects = Enum.filter(subjects, &(&1.id in selected_subjects_ids))
selected_years = Enum.filter(years, &(&1.id in selected_years_ids))
Expand Down

0 comments on commit 2c1b30b

Please sign in to comment.