Skip to content

Commit

Permalink
remove index of supervisor list
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomáš Kulhánek committed Nov 6, 2020
1 parent dbfad4f commit 6400acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/SupervisorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function indexAction(): Response
* @var Supervisor $supervisor
*/
foreach ($this->supervisorManager->getSupervisors() as $supervisorKey => $supervisor) {
$data[$supervisorKey] = \HelpPC\Bundle\SupervisorRestBundle\DTO\Supervisor::mapSupervisor($supervisor, $supervisorKey);
$data[] = \HelpPC\Bundle\SupervisorRestBundle\DTO\Supervisor::mapSupervisor($supervisor, $supervisorKey);
}

return $this->getApiResponse($data, Response::HTTP_OK);
Expand Down

0 comments on commit 6400acb

Please sign in to comment.