Skip to content

Support getting task details using id #859

@keraan

Description

@keraan

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();
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions