improved handling of null values when mapping entities to json
This commit is contained in:
@@ -84,7 +84,9 @@
|
||||
});
|
||||
if (resp.ok) {
|
||||
task = await resp.json();
|
||||
router.navigate(`/task/${task.id}/view`);
|
||||
if (task.parent_task_id){
|
||||
router.navigate(`/task/${task.parent_task_id}/view`);
|
||||
} else router.navigate(`/task/${task.id}/view`);
|
||||
error = null;
|
||||
} else {
|
||||
error = await resp.text();
|
||||
|
||||
Reference in New Issue
Block a user