solve org error

This commit is contained in:
Charles 2026-01-28 16:27:22 +01:00
parent fef74fea64
commit bc730155ba
1 changed files with 2 additions and 1 deletions

View File

@ -74,6 +74,7 @@ class OrganizationController extends AbstractController
throw new AccessDeniedHttpException('Access denied');
}
#[Route(path: '/create', name: 'create', methods: ['GET', 'POST'])]
public function new(Request $request): Response
{
@ -345,7 +346,6 @@ class OrganizationController extends AbstractController
// Map to array
$data = array_map(function (Organizations $org) {
return [
'id' => $org->getId(),
'name' => $org->getName(),
@ -366,4 +366,5 @@ class OrganizationController extends AbstractController
}
}