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,