fix(due date): update value correctly, fixes #10405

This commit is contained in:
Matteo Pagliazzi
2018-05-28 13:54:13 +02:00
parent e6cf7564b8
commit 6e7b9f1f93

View File

@@ -622,7 +622,8 @@ export default {
this.$t('today') :
this.timeTillDue.humanize(true);
return this.$t('dueIn', { dueIn });
// this.task && is necessary to make sure the computed property updates correctly
return this.task && this.task.date && this.$t('dueIn', { dueIn });
},
hasTags () {
return this.task.tags && this.task.tags.length > 0;