From 96d22e54f89366f036b00fa69ac97d76734c3f76 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Tue, 8 Sep 2020 12:52:09 +0200 Subject: [PATCH] fix(task creation): correctly clone selected tags array, fixes #12447 --- website/client/src/components/tasks/column.vue | 2 +- website/client/src/components/tasks/user.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/client/src/components/tasks/column.vue b/website/client/src/components/tasks/column.vue index 23b085d8dc..cf3e767668 100644 --- a/website/client/src/components/tasks/column.vue +++ b/website/client/src/components/tasks/column.vue @@ -608,7 +608,7 @@ export default { const tasks = text.split('\n').reverse().filter(taskText => (!!taskText)).map(taskText => { const task = taskDefaults({ type: this.type, text: taskText }, this.user); - task.tags = this.selectedTags; + task.tags = this.selectedTags.slice(); return task; }); diff --git a/website/client/src/components/tasks/user.vue b/website/client/src/components/tasks/user.vue index 058dde76aa..bdea7150a5 100644 --- a/website/client/src/components/tasks/user.vue +++ b/website/client/src/components/tasks/user.vue @@ -549,7 +549,7 @@ export default { createTask (type) { this.openCreateBtn = false; this.creatingTask = taskDefaults({ type, text: '' }, this.user); - this.creatingTask.tags = this.selectedTags; + this.creatingTask.tags = this.selectedTags.slice(); // Necessary otherwise the first time the modal is not rendered Vue.nextTick(() => {