Skip to content

Commit 75fb95b

Browse files
wofferlGrotax
andcommitted
show message if timestamp is null
Co-authored-by: Benjamin Brahmer <info@b-brahmer.de> Signed-off-by: Wolfgang <github@linux-dude.de>
1 parent 9a0f8f6 commit 75fb95b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/modals/FeedInfoTable.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ export default {
114114
},
115115
methods: {
116116
formatDate(timestamp) {
117+
if (!timestamp) {
118+
return t('news', 'Not available')
119+
}
117120
return new Date(timestamp).toLocaleDateString(undefined, {
118121
day: '2-digit',
119122
month: '2-digit',

0 commit comments

Comments
 (0)