From b263ed7ce656356050ad8276ae8f36dcbff1f9df Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 4 Sep 2024 23:48:51 +0000 Subject: [PATCH] fix team res --- app/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/init.php b/app/init.php index d1b703dcec..5d6f4dac16 100644 --- a/app/init.php +++ b/app/init.php @@ -1759,7 +1759,7 @@ App::setResource('plan', function (array $plan = []) { App::setResource('team', function (Document $project, Database $dbForConsole, App $utopia, Request $request) { $teamInternalId = ''; if ($project->getId() !== 'console') { - $teamInternalId = $project->getAttribute('teamInternalId'); + $teamInternalId = $project->getAttribute('teamInternalId', ''); } else { $route = $utopia->match($request); $path = $route->getPath();