Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Update name on a team change

Jakub Novak185b54dd2711
diff --git a/apps/web/src/components/Dashboard/Team.tsx b/apps/web/src/components/Dashboard/Team.tsx
index 6f4f80406..b8e2a5c92 100644
--- a/apps/web/src/components/Dashboard/Team.tsx
+++ b/apps/web/src/components/Dashboard/Team.tsx
@@ -55,6 +55,10 @@ export const TeamContent = ({ team, user, teams, currentApiKey, setTeams, setCur
}
}, [currentApiKey, user, userAdded])
+ useEffect(() => {
+ setTeamName(team.name)
+ }, [team])
+
const closeDialog = () => setIsDialogOpen(false)
const openDialog = (id: string) => {
setCurrentMemberId(id)