From f4a4909eadfcaf0f97adfdaf703f4a885fe26510 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 6 Aug 2021 23:45:46 +0200 Subject: [PATCH] Fix populating task details ater updating the description --- src/components/tasks/partials/description.vue | 5 +++-- src/views/tasks/TaskDetailView.vue | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/tasks/partials/description.vue b/src/components/tasks/partials/description.vue index 28d1e2a07..e95907198 100644 --- a/src/components/tasks/partials/description.vue +++ b/src/components/tasks/partials/description.vue @@ -78,8 +78,9 @@ export default { this.saving = true this.$store.dispatch('tasks/update', this.task) - .then(() => { - this.$emit('input', this.task) + .then(t => { + this.task = t + this.$emit('input', t) this.saved = true setTimeout(() => { this.saved = false diff --git a/src/views/tasks/TaskDetailView.vue b/src/views/tasks/TaskDetailView.vue index d88b6a82f..5b3e450f3 100644 --- a/src/views/tasks/TaskDetailView.vue +++ b/src/views/tasks/TaskDetailView.vue @@ -610,7 +610,7 @@ export default { this.$store.dispatch('tasks/update', this.task) .then(r => { - this.$set(this, 'task', r) + this.task = r this.setActiveFields() if (!showNotification) {