Skip to content

Commit d9240cb

Browse files
NarwhalChenpengyu
authored andcommitted
fix: cannot redirect to project page for the first time (#155)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> - **Refactor** - Improved chat session navigation for smoother transitions and a more integrated user experience. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 9c6461d commit d9240cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/src/components/sidebar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
SidebarFooter,
2121
} from './ui/sidebar';
2222
import { ProjectContext } from './chat/code-engine/project-context';
23+
import { useRouter } from 'next/navigation';
2324

2425
interface SidebarProps {
2526
setIsModalOpen: (value: boolean) => void;

0 commit comments

Comments
 (0)