From 75fb95b5e320ca59bcbbbdd60dba47a134d3c696 Mon Sep 17 00:00:00 2001 From: Wolfgang Date: Thu, 2 Jan 2025 12:47:51 +0100 Subject: [PATCH] show message if timestamp is null Co-authored-by: Benjamin Brahmer Signed-off-by: Wolfgang --- src/components/modals/FeedInfoTable.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/modals/FeedInfoTable.vue b/src/components/modals/FeedInfoTable.vue index 9f7d3d7bc..4ee9f647d 100644 --- a/src/components/modals/FeedInfoTable.vue +++ b/src/components/modals/FeedInfoTable.vue @@ -114,6 +114,9 @@ export default { }, methods: { formatDate(timestamp) { + if (!timestamp) { + return t('news', 'Not available') + } return new Date(timestamp).toLocaleDateString(undefined, { day: '2-digit', month: '2-digit',