Update app/models/dossier.rb

Co-authored-by: LeSim <mail@simon.lehericey.net>
This commit is contained in:
Paul Chavard 2024-04-02 18:09:29 +02:00 committed by GitHub
parent 7cf1cdb47b
commit 0006a12aea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1161,7 +1161,7 @@ class Dossier < ApplicationRecord
revision
.children_of(scope)
.flat_map { champs_index[_1.stable_id] || [] }
.filter(&:child?)
.filter(&:child?) # TODO: remove once bad data (child champ without a row id) is cleaned
else
revision
.types_de_champ_for(scope:, root:)