From 0006a12aea3f127d3384a952963f4cf2e78b6ad3 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Tue, 2 Apr 2024 18:09:29 +0200 Subject: [PATCH] Update app/models/dossier.rb Co-authored-by: LeSim --- app/models/dossier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/dossier.rb b/app/models/dossier.rb index cfe4af7ee..1c234d77b 100644 --- a/app/models/dossier.rb +++ b/app/models/dossier.rb @@ -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:)