mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix(frontend): fix is last month for empty form date
This commit is contained in:
parent
0fa61c67eb
commit
64930cfb3f
@ -188,6 +188,7 @@ export default {
|
|||||||
return new Date(date.setMonth(date.getMonth() - 1, 1))
|
return new Date(date.setMonth(date.getMonth() - 1, 1))
|
||||||
},
|
},
|
||||||
isThisMonth() {
|
isThisMonth() {
|
||||||
|
if (!this.form.date) return false
|
||||||
const formDate = new Date(this.form.date)
|
const formDate = new Date(this.form.date)
|
||||||
return (
|
return (
|
||||||
formDate.getFullYear() === this.maximalDate.getFullYear() &&
|
formDate.getFullYear() === this.maximalDate.getFullYear() &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user