From 64930cfb3f2f2a8bc1e1618f9f72c9b9746b97df Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Fri, 10 Feb 2023 12:58:30 +0100 Subject: [PATCH] fix(frontend): fix is last month for empty form date --- frontend/src/pages/Community.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/pages/Community.vue b/frontend/src/pages/Community.vue index 113bcd4e4..71fb9f552 100644 --- a/frontend/src/pages/Community.vue +++ b/frontend/src/pages/Community.vue @@ -188,6 +188,7 @@ export default { return new Date(date.setMonth(date.getMonth() - 1, 1)) }, isThisMonth() { + if (!this.form.date) return false const formDate = new Date(this.form.date) return ( formDate.getFullYear() === this.maximalDate.getFullYear() &&