Skip to content

Commit

Permalink
fix: fix the bug of cannot redirect after create project in home page
Browse files Browse the repository at this point in the history
  • Loading branch information
NarwhalChen committed Mar 4, 2025
1 parent 0ae45c0 commit 49fc8af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function ProjectProvider({ children }: { children: ReactNode }) {
// Navigate to chat page after project creation
if (data?.createProject?.id) {
toast.success('Project created successfully!');
router.push(`/chat/${data.createProject.id}`);
router.push(`/chat?id=${data.createProject.id}`);
}
},
onError: (error) => {
Expand Down

0 comments on commit 49fc8af

Please sign in to comment.