From d0bab8d0e9c4d124b82f3dab5dc1f8aa32ced746 Mon Sep 17 00:00:00 2001 From: Sma1lboy <541898146chen@gmail.com> Date: Sun, 16 Mar 2025 18:18:36 -0500 Subject: [PATCH] fix(frontend): remove console logs and correct project ID retrieval --- frontend/src/app/(main)/page.tsx | 1 - frontend/src/components/chat/code-engine/project-context.tsx | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/app/(main)/page.tsx b/frontend/src/app/(main)/page.tsx index befe02a2..60f91e01 100644 --- a/frontend/src/app/(main)/page.tsx +++ b/frontend/src/app/(main)/page.tsx @@ -33,7 +33,6 @@ export default function HomePage() { try { const chatId = await createProjectFromPrompt(message, isPublic, model); - console.log('Project created with ID:', chatId); promptFormRef.current.clearMessage(); router.push(`/chat?id=${chatId}`); } catch (error) { diff --git a/frontend/src/components/chat/code-engine/project-context.tsx b/frontend/src/components/chat/code-engine/project-context.tsx index 869065fd..dbc6d25e 100644 --- a/frontend/src/components/chat/code-engine/project-context.tsx +++ b/frontend/src/components/chat/code-engine/project-context.tsx @@ -714,9 +714,8 @@ export function ProjectProvider({ children }: { children: ReactNode }) { }, }, }); - console.log('creatae a project result:', result); - return result.data.id; + return result.data.createProject.id; } catch (error) { logger.error('Error creating project:', error); if (isMounted.current) {