Skip to content

Commit d0bab8d

Browse files
committed
fix(frontend): remove console logs and correct project ID retrieval
1 parent 2b6387e commit d0bab8d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

frontend/src/app/(main)/page.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export default function HomePage() {
3333
try {
3434
const chatId = await createProjectFromPrompt(message, isPublic, model);
3535

36-
console.log('Project created with ID:', chatId);
3736
promptFormRef.current.clearMessage();
3837
router.push(`/chat?id=${chatId}`);
3938
} catch (error) {

frontend/src/components/chat/code-engine/project-context.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -714,9 +714,8 @@ export function ProjectProvider({ children }: { children: ReactNode }) {
714714
},
715715
},
716716
});
717-
console.log('creatae a project result:', result);
718717

719-
return result.data.id;
718+
return result.data.createProject.id;
720719
} catch (error) {
721720
logger.error('Error creating project:', error);
722721
if (isMounted.current) {

0 commit comments

Comments
 (0)