mirror of
https://github.com/harivansh-afk/RAG-ui.git
synced 2026-04-15 09:01:16 +00:00
ui fixes
This commit is contained in:
parent
61237f02d6
commit
d9b7c807fe
1 changed files with 2 additions and 4 deletions
|
|
@ -75,9 +75,7 @@ export default function AskQuestion() {
|
||||||
setChat(null);
|
setChat(null);
|
||||||
setMessages([]);
|
setMessages([]);
|
||||||
setError(null);
|
setError(null);
|
||||||
// Generate a temporary ID for the new chat
|
navigate('/dashboard/ask?new=true', { replace: true });
|
||||||
const tempId = 'temp-' + Date.now();
|
|
||||||
navigate(`/dashboard/ask/${tempId}`);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const generateChatTitle = (message: string) => {
|
const generateChatTitle = (message: string) => {
|
||||||
|
|
@ -239,7 +237,7 @@ export default function AskQuestion() {
|
||||||
className="flex-1 overflow-y-auto scroll-smooth"
|
className="flex-1 overflow-y-auto scroll-smooth"
|
||||||
onScroll={handleScroll}
|
onScroll={handleScroll}
|
||||||
>
|
>
|
||||||
{!isLoadingChat && messages.length === 0 ? (
|
{!isLoadingChat && messages.length === 0 && !loading ? (
|
||||||
<div className="flex h-full flex-col items-center justify-center">
|
<div className="flex h-full flex-col items-center justify-center">
|
||||||
<h1 className="mb-10 text-2xl font-bold">
|
<h1 className="mb-10 text-2xl font-bold">
|
||||||
What can I help with?
|
What can I help with?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue