Skip to content

Commit

Permalink
revert: remove sleep #283
Browse files Browse the repository at this point in the history
  • Loading branch information
srizvi committed Apr 27, 2024
1 parent 9785b27 commit 9225c5b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apps/mai-sc/src/app/(chat)/chat/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { getChat, getMissingKeys } from '#/app/actions';
import { siteConfig } from '#/config/site';
import { AI } from '#/lib/chat/actions';
import { SITE_URL } from '#/lib/constants';
import { sleep } from '#/lib/utils';
import { Chat } from '#/ui/chat';

export interface ChatPageProps {
Expand All @@ -30,7 +29,6 @@ export default async function ChatPage({ params }: ChatPageProps) {
const chat = await getChat(params.id, userId);

if (!chat) {
await sleep(2000);
redirect('/chat');
}

Expand Down

0 comments on commit 9225c5b

Please sign in to comment.