From 6e7b9f1f93b74079d442be8c4503db7ce13cf4a8 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Mon, 28 May 2018 13:54:13 +0200 Subject: [PATCH] fix(due date): update value correctly, fixes #10405 --- website/client/components/tasks/task.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/client/components/tasks/task.vue b/website/client/components/tasks/task.vue index 1a2f055dcf..50c684fb15 100644 --- a/website/client/components/tasks/task.vue +++ b/website/client/components/tasks/task.vue @@ -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;