fix(attestation): fix unspecified_attestation_champs for v2

This commit is contained in:
Colin Darie 2024-06-07 13:19:04 +02:00
parent a2c0379127
commit f2669fbca8
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
3 changed files with 60 additions and 28 deletions

View file

@ -210,7 +210,7 @@ class AttestationTemplate < ApplicationRecord
def used_tags
if version == 2
json = json_body&.deep_symbolize_keys
TiptapService.used_tags_and_libelle_for(json.deep_symbolize_keys)
TiptapService.used_tags_and_libelle_for(json.deep_symbolize_keys).map(&:first)
else
used_tags_for(title) + used_tags_for(body)
end