The following is code from selected-task-service.ts.
None of the code elsewhere ever uses selectedTaskService.setSelectedTask(number), so this code never ran before.
Attempting to gives the following error:
GET http://localhost:3000/api//projects//task_def_id/ 400 (Bad Request)
public setSelectedTask(task: number | Task) {
if (typeof task === 'number') {
this.taskService.get(task).subscribe(this.task$); // THIS LINE HERE
} else {
this.task$.next(task);
task?.getSubmissionDetails().subscribe();
}
this.checkFooterHeight();
this.showSubmission();
}
The following is code from
selected-task-service.ts
. None of the code elsewhere ever uses selectedTaskService.setSelectedTask(number), so this code never ran before. Attempting to gives the following error:GET http://localhost:3000/api//projects//task_def_id/ 400 (Bad Request)