mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-24 17:10:12 +08:00
Fix: Accidentally deleted the previously selected chat. (#17710)
This commit is contained in:
@@ -10,5 +10,5 @@ export const useHandleSearchStrChange = () => {
|
||||
[],
|
||||
);
|
||||
|
||||
return { handleInputChange, searchString };
|
||||
return { handleInputChange, searchString, setSearchString };
|
||||
};
|
||||
|
||||
@@ -273,7 +273,8 @@ export const useFetchChat = () => {
|
||||
export const useFetchSessionList = () => {
|
||||
const { id } = useParams();
|
||||
|
||||
const { searchString, handleInputChange } = useHandleSearchStrChange();
|
||||
const { searchString, handleInputChange, setSearchString } =
|
||||
useHandleSearchStrChange();
|
||||
|
||||
const {
|
||||
data,
|
||||
@@ -299,7 +300,14 @@ export const useFetchSessionList = () => {
|
||||
},
|
||||
});
|
||||
|
||||
return { data, loading, refetch, searchString, handleInputChange };
|
||||
return {
|
||||
data,
|
||||
loading,
|
||||
refetch,
|
||||
searchString,
|
||||
handleInputChange,
|
||||
setSearchString,
|
||||
};
|
||||
};
|
||||
|
||||
export function useFetchSessionManually() {
|
||||
|
||||
Reference in New Issue
Block a user