From 5c5d0ab60f471d521f3c9c5d0d58b4713e5ca6ef Mon Sep 17 00:00:00 2001 From: Juraj Majerik Date: Thu, 26 Oct 2023 10:12:05 +0200 Subject: [PATCH] reload org after project creation --- frontend/src/scenes/project/CreateProjectModal.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/scenes/project/CreateProjectModal.tsx b/frontend/src/scenes/project/CreateProjectModal.tsx index 878a12f7c0a05..e1471df2d495e 100644 --- a/frontend/src/scenes/project/CreateProjectModal.tsx +++ b/frontend/src/scenes/project/CreateProjectModal.tsx @@ -16,6 +16,7 @@ export function CreateProjectModal({ inline?: boolean }): JSX.Element { const { createTeam } = useActions(teamLogic) + const { loadCurrentOrganization } = useActions(organizationLogic) const { currentOrganization } = useValues(organizationLogic) const { reportProjectCreationSubmitted } = useActions(eventUsageLogic) const [name, setName] = useState('') @@ -31,6 +32,7 @@ export function CreateProjectModal({ const handleSubmit = (): void => { createTeam({ name, is_demo: false }) reportProjectCreationSubmitted(currentOrganization?.teams ? currentOrganization.teams.length : 0, name.length) + loadCurrentOrganization() closeModal() }