From 9043e35fdaf3c1ca7ec79144fd19cde893c0275a Mon Sep 17 00:00:00 2001 From: Manuel Kasper Date: Mon, 24 Jul 2023 16:47:19 +0200 Subject: [PATCH] Don't show old photos that are missing an uploadDate --- src/components/SummitPhotos.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SummitPhotos.vue b/src/components/SummitPhotos.vue index 856675e..5aaf478 100644 --- a/src/components/SummitPhotos.vue +++ b/src/components/SummitPhotos.vue @@ -50,7 +50,7 @@ export default { let summitPhotos = this.summit.photos if (this.minDate) { summitPhotos = summitPhotos.filter(photo => { - return moment(photo.uploadDate).isSameOrAfter(moment(this.minDate)) + return photo.uploadDate && moment(photo.uploadDate).isSameOrAfter(moment(this.minDate)) }) } summitPhotos.forEach(photo => {