Fix: Accidentally deleted the previously selected chat. (#17710)

This commit is contained in:
balibabu
2026-08-03 13:45:35 +08:00
committed by GitHub
parent a1a79ab98c
commit 62457075d4
4 changed files with 41 additions and 11 deletions

View File

@@ -10,5 +10,5 @@ export const useHandleSearchStrChange = () => {
[],
);
return { handleInputChange, searchString };
return { handleInputChange, searchString, setSearchString };
};

View File

@@ -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() {