Refresh project roles after create project

This commit is contained in:
Takeshi Kimata
2024-06-11 21:43:25 +09:00
parent 92d9c8235d
commit 996174f7a1
3 changed files with 18 additions and 13 deletions

View File

@@ -63,6 +63,9 @@ export default function ProjectsPage({ messages, locale }: Props) {
} else {
const newProject = await createProject(context.token.access_token, name, detail, isPublic);
setProjects([...projects, newProject]);
// refresh project roles
context.refreshProjectRoles();
}
closeDialog();
};