From d9b7c807fef4bbbae6139f506539ce4a54542b78 Mon Sep 17 00:00:00 2001 From: rathi Date: Wed, 11 Dec 2024 16:03:21 -0500 Subject: [PATCH] ui fixes --- src/pages/dashboard/ask.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/dashboard/ask.tsx b/src/pages/dashboard/ask.tsx index 67cadb1..c54ac0c 100644 --- a/src/pages/dashboard/ask.tsx +++ b/src/pages/dashboard/ask.tsx @@ -75,9 +75,7 @@ export default function AskQuestion() { setChat(null); setMessages([]); setError(null); - // Generate a temporary ID for the new chat - const tempId = 'temp-' + Date.now(); - navigate(`/dashboard/ask/${tempId}`); + navigate('/dashboard/ask?new=true', { replace: true }); }; const generateChatTitle = (message: string) => { @@ -239,7 +237,7 @@ export default function AskQuestion() { className="flex-1 overflow-y-auto scroll-smooth" onScroll={handleScroll} > - {!isLoadingChat && messages.length === 0 ? ( + {!isLoadingChat && messages.length === 0 && !loading ? (

What can I help with?