mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-22 23:31:12 +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,
|
searchMode,
|
||||||
onSearchModeChange,
|
onSearchModeChange,
|
||||||
}: ChatInterfaceProps) {
|
}: 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 { chat_id, search_space_id } = useParams();
|
||||||
const [chatDetails, setChatDetails] = useState<ChatDetails | null>(null);
|
const [chatDetails, setChatDetails] = useState<ChatDetails | null>(null);
|
||||||
const [isChatPannelOpen, setIsChatPannelOpen] = useState(false);
|
const [isChatPannelOpen, setIsChatPannelOpen] = useState(false);
|
||||||
|
|
@ -65,7 +59,7 @@ export default function ChatInterface({
|
||||||
const { getPodcastByChatId } = usePodcast();
|
const { getPodcastByChatId } = usePodcast();
|
||||||
|
|
||||||
const { fetchChatDetails } = useChatAPI({
|
const { fetchChatDetails } = useChatAPI({
|
||||||
token,
|
token: localStorage?.getItem("surfsense_bearer_token"),
|
||||||
search_space_id: search_space_id as string,
|
search_space_id: search_space_id as string,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,6 @@ export function ChatPanelView(props: ChatPanelViewProps) {
|
||||||
});
|
});
|
||||||
}, [chatDetails, generatePodcast]);
|
}, [chatDetails, generatePodcast]);
|
||||||
|
|
||||||
console.log("podcastIsStale", podcastIsStale);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-full">
|
<div className="w-full">
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue