mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
fix(Chat): correctly render when refreshing/visiting a conversation page (#1037)
This commit is contained in:
parent
b3aac97710
commit
495ac1b36d
2 changed files with 6 additions and 5 deletions
|
|
@ -1,14 +1,14 @@
|
|||
import React from 'react';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { useLocalize, useConversation } from '~/hooks';
|
||||
|
||||
export default function NewChat() {
|
||||
const { newConversation } = useConversation();
|
||||
const navigate = useNavigate();
|
||||
const localize = useLocalize();
|
||||
|
||||
const clickHandler = () => {
|
||||
// dispatch(setInputValue(''));
|
||||
// dispatch(setQuery(''));
|
||||
newConversation();
|
||||
navigate('/chat/new');
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue