Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support getting task details using id #859

Open
keraan opened this issue May 31, 2024 · 1 comment
Open

Support getting task details using id #859

keraan opened this issue May 31, 2024 · 1 comment

Comments

@keraan
Copy link
Contributor

keraan commented May 31, 2024

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();
  }
@keraan
Copy link
Contributor Author

keraan commented May 31, 2024

@macite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant