mirror of
https://github.com/Gimanh/taskview-community.git
synced 2026-09-11 21:38:56 +00:00
Merge pull request #4 from Gimanh/fix/subtask-add-ui-bug
fix: add subtasks to selectedTask
This commit is contained in:
@@ -115,6 +115,10 @@ export const useTasksStore = defineStore('tasks', {
|
||||
if (mainTask) {
|
||||
mainTask.subtasks.push(task);
|
||||
}
|
||||
|
||||
if (this.selectedTask?.id === task.parentId) {
|
||||
this.selectedTask.subtasks.push(task);
|
||||
}
|
||||
} else {
|
||||
this.tasks.unshift(task);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user