mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-06 06:12:40 +02:00
removed unecessary side effects
This commit is contained in:
parent
981e3a74e7
commit
a174c9ca57
1 changed files with 0 additions and 12 deletions
|
|
@ -125,18 +125,6 @@ export default function ChatsPageClient({ searchSpaceId }: ChatsPageClientProps)
|
|||
}
|
||||
}, [searchParams]);
|
||||
|
||||
useEffect(() => {
|
||||
if (fetchError) {
|
||||
console.error("Error fetching chats:", fetchError);
|
||||
}
|
||||
}, [fetchError]);
|
||||
|
||||
useEffect(() => {
|
||||
if (deleteError) {
|
||||
console.error("Error deleting chat:", deleteError);
|
||||
}
|
||||
}, [deleteError]);
|
||||
|
||||
// Filter and sort chats based on search query, type, and sort order
|
||||
useEffect(() => {
|
||||
let result = [...(chats || [])];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue