Skip to content

Commit

Permalink
reload org after project creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajmajerik committed Oct 26, 2023
1 parent 624cd65 commit 5c5d0ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/scenes/project/CreateProjectModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>('')
Expand All @@ -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()
}

Expand Down

0 comments on commit 5c5d0ab

Please sign in to comment.