Don't fail when an article has no BLOC_TEXTUEL

This commit is contained in:
Emmanuel 2024-12-01 23:56:22 +01:00
parent e0bffa4f3a
commit c5537c1276
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@
</svelte:element> </svelte:element>
{/if} {/if}
{@html article.BLOC_TEXTUEL.CONTENU} {@html article.BLOC_TEXTUEL?.CONTENU}
{#if ciblesCreation.length > 0} {#if ciblesCreation.length > 0}
<ul> <ul>

View file

@ -151,7 +151,7 @@ export interface Article {
VERSIONS: { VERSIONS: {
VERSION: ArticleVersion | ArticleVersion[] VERSION: ArticleVersion | ArticleVersion[]
} }
BLOC_TEXTUEL: { BLOC_TEXTUEL?: {
CONTENU: string // HTML CONTENU: string // HTML
} }
} }