fix: "invalid date" error when trying to set a date and none was set before

This commit is contained in:
kolaente 2022-02-27 16:39:21 +01:00
parent a23b4a96ee
commit b144802203
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -183,6 +183,10 @@ export default {
this.updateData() this.updateData()
}, },
get() { get() {
if(!this.date) {
return ''
}
return format(this.date, 'yyy-LL-dd H:mm') return format(this.date, 'yyy-LL-dd H:mm')
}, },
}, },