fix(attestation): fix unspecified_attestation_champs for v2
This commit is contained in:
parent
a2c0379127
commit
f2669fbca8
3 changed files with 60 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue