Skip to content

Commit

Permalink
Remove safe navigation from bookings_subject in `placement_date_opt…
Browse files Browse the repository at this point in the history
…ion.rb`
  • Loading branch information
ekumachidi committed Apr 26, 2024
1 parent ee21f75 commit 516a37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/candidates/placement_date_option.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def self.for_secondary_date(placement_date)
placement_date.placement_date_subjects.map do |placement_date_subject|
new(
placement_date_subject.date_and_subject_id,
placement_date_subject.bookings_subject&.name,
placement_date_subject.bookings_subject.name,
placement_date.duration,
placement_date.date,
placement_date.virtual,
Expand Down

0 comments on commit 516a37f

Please sign in to comment.