Merge pull request #2567 from scott-ray-wilson/fix-unintentional-project-creation

Fix: Prevent Example Project Creation on SSO Signup When Joining Org
This commit is contained in:
Maidul Islam
2024-10-09 15:01:44 -07:00
committed by GitHub

View File

@@ -176,12 +176,16 @@ export const UserInfoSSOStep = ({
organizationId: orgId
});
const project = await ProjectService.initProject({
projectName: "Example Project"
});
// only create example project if not joining existing org
if (!providerOrganizationName) {
const project = await ProjectService.initProject({
projectName: "Example Project"
});
localStorage.setItem("projectData.id", project.id);
}
localStorage.setItem("orgData.id", orgId);
localStorage.setItem("projectData.id", project.id);
setStep(2);
} catch (error) {