|
|
@@ -128,11 +128,11 @@ const getImageUrl = (attachment: string | null): string | null => {
|
|
|
}
|
|
|
|
|
|
const formattedPublicationDate: ComputedRef<string> = computed(() => {
|
|
|
- if (!newsItem || !newsItem.startPublication) {
|
|
|
+ if (!newsItem) {
|
|
|
return ''
|
|
|
}
|
|
|
|
|
|
- const date = parseISO(newsItem.startPublication)
|
|
|
+ const date = parseISO(newsItem.startPublication!)
|
|
|
|
|
|
let formattedPublicationDate = format(date, "'Le' dd MMMM yyyy", {
|
|
|
locale: fr,
|