mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-22 21:28:12 +02:00
replace imperative fetch with tanstak
This commit is contained in:
parent
373bd668f7
commit
ff73272da5
2 changed files with 1 additions and 60 deletions
|
|
@ -8,7 +8,7 @@ import { createChatMutationAtom, updateChatMutationAtom } from "@/atoms/chats/ch
|
|||
import { activeChatAtom } from "@/atoms/chats/chat-query.atoms";
|
||||
import { activeChatIdAtom } from "@/atoms/chats/ui.atoms";
|
||||
import ChatInterface from "@/components/chat/ChatInterface";
|
||||
import { useChatAPI, useChatState } from "@/hooks/use-chat";
|
||||
import { useChatState } from "@/hooks/use-chat";
|
||||
import { useDocumentTypes } from "@/hooks/use-document-types";
|
||||
import type { Document } from "@/hooks/use-documents";
|
||||
import { useSearchSourceConnectors } from "@/hooks/use-search-source-connectors";
|
||||
|
|
@ -44,11 +44,6 @@ export default function ResearcherPage() {
|
|||
chat_id: activeChatId ?? undefined,
|
||||
});
|
||||
|
||||
// const { updateChat } = useChatAPI({
|
||||
// token,
|
||||
// search_space_id: search_space_id as string,
|
||||
// });
|
||||
|
||||
// Fetch all available sources (document types + live search connectors)
|
||||
const { documentTypes } = useDocumentTypes(Number(search_space_id));
|
||||
const { connectors: searchConnectors } = useSearchSourceConnectors(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue