Skip to content

Commit fe1b821

Browse files
Update project creation to set onboarding status and manage project s… (#1251)
1 parent b5d5e5c commit fe1b821

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • apps/dashboard/src/app/(main)/(protected)/(outside-dashboard)/new-project

apps/dashboard/src/app/(main)/(protected)/(outside-dashboard)/new-project/page-client.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,9 +1554,14 @@ export default function PageClient() {
15541554
const newProject = await user.createProject({
15551555
displayName: trimmedProjectName,
15561556
teamId,
1557+
onboardingStatus: "config_choice",
15571558
});
15581559

1559-
await setSelectedProjectStatus(newProject, "config_choice");
1560+
setProjectStatuses((previous) => {
1561+
const next = new Map(previous);
1562+
next.set(newProject.id, "config_choice");
1563+
return next;
1564+
});
15601565

15611566
if (redirectToNeonConfirmWith != null) {
15621567
const confirmSearchParams = new URLSearchParams(redirectToNeonConfirmWith);

0 commit comments

Comments
 (0)