This commit is contained in:
Emmanuel 2024-05-20 10:54:09 +02:00
parent e27a8d53ac
commit 2ea0a18380

View file

@ -390,10 +390,9 @@ export function summarizeLegalObject(
return undefined
}
const today = new Date().toISOString().split("T")[0]
return `${sectionTa.TITRE_TA}${bestItemForDate(
sectionTa.CONTEXTE.TEXTE.TITRE_TXT,
today,
)?.["#text"]}`
return `${sectionTa.TITRE_TA}${
bestItemForDate(sectionTa.CONTEXTE.TEXTE.TITRE_TXT, today)?.["#text"]
}`
}
case "texte_version": {
const texteVersion = value as TexteVersion | undefined