mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-08 20:25:19 +02:00
clean up
This commit is contained in:
parent
84ac44e3b1
commit
ce4bb7e1b7
2 changed files with 1 additions and 9 deletions
|
|
@ -43,12 +43,6 @@ export default function ChatInterface({
|
|||
searchMode,
|
||||
onSearchModeChange,
|
||||
}: ChatInterfaceProps) {
|
||||
const [token, setToken] = useState<string | null>(null);
|
||||
useEffect(() => {
|
||||
const bearerToken = localStorage.getItem("surfsense_bearer_token");
|
||||
setToken(bearerToken);
|
||||
}, []);
|
||||
|
||||
const { chat_id, search_space_id } = useParams();
|
||||
const [chatDetails, setChatDetails] = useState<ChatDetails | null>(null);
|
||||
const [isChatPannelOpen, setIsChatPannelOpen] = useState(false);
|
||||
|
|
@ -65,7 +59,7 @@ export default function ChatInterface({
|
|||
const { getPodcastByChatId } = usePodcast();
|
||||
|
||||
const { fetchChatDetails } = useChatAPI({
|
||||
token,
|
||||
token: localStorage?.getItem("surfsense_bearer_token"),
|
||||
search_space_id: search_space_id as string,
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -35,8 +35,6 @@ export function ChatPanelView(props: ChatPanelViewProps) {
|
|||
});
|
||||
}, [chatDetails, generatePodcast]);
|
||||
|
||||
console.log("podcastIsStale", podcastIsStale);
|
||||
|
||||
return (
|
||||
<div className="w-full">
|
||||
<div
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue