mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
fix(task creation): correctly clone selected tags array, fixes #12447
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user