소스 검색

post MR fixes

Olivier Massot 1 년 전
부모
커밋
113baa96b6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      components/News/Details.vue

+ 2 - 2
components/News/Details.vue

@@ -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,