fix: coordinate_and_tdc return nil if not found
This commit is contained in:
parent
bd708a12a0
commit
c4c0c275e1
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ class ProcedureRevision < ApplicationRecord
|
|||
.joins(:type_de_champ)
|
||||
.find_by(type_de_champ: { stable_id: stable_id })
|
||||
|
||||
[coordinate, coordinate.type_de_champ]
|
||||
[coordinate, coordinate&.type_de_champ]
|
||||
end
|
||||
|
||||
def renumber(siblings)
|
||||
|
|
Loading…
Add table
Reference in a new issue