Add prefill params tests repetition

This commit is contained in:
Damien Le Thiec 2023-02-08 17:38:51 +01:00
parent a51ed0094b
commit c5f1f80d25
2 changed files with 53 additions and 2 deletions

View file

@ -83,7 +83,7 @@ class PrefillParams
id = row.find { |champ| champ.libelle == key }&.id
next unless id
{ id: id, value: value }
end
end.compact
rescue JSON::ParserError
end.compact
end