worked on notes
This commit is contained in:
@@ -50,7 +50,6 @@
|
||||
parent_task = await resp.json();
|
||||
task.parent_task_id = +parent_task_id;
|
||||
project_id = parent_task.project_id;
|
||||
console.log({prj:project_id});
|
||||
error = null;
|
||||
project = null; // TODO
|
||||
} else {
|
||||
@@ -64,7 +63,8 @@
|
||||
if (resp.ok){
|
||||
project = await resp.json();
|
||||
task.project_id = +project_id;
|
||||
task.members = JSON.parse(JSON.stringify(parent_task?parent_task.members:project.members)); // deep copy
|
||||
let member_source = parent_task?parent_task.members:project.members;
|
||||
task.members = JSON.parse(JSON.stringify(member_source)); // deep copy
|
||||
error = null;
|
||||
} else {
|
||||
error = await resp.text();
|
||||
|
||||
Reference in New Issue
Block a user