mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 16:56:22 +02:00
stop propagation in the chat panelcl
This commit is contained in:
parent
9007436ff6
commit
e47b1cb4c5
4 changed files with 34 additions and 36 deletions
|
|
@ -19,7 +19,7 @@ export function ChatPanelContainer() {
|
|||
throw new Error("chatInterfaceContext must be used within a ChatProvider");
|
||||
}
|
||||
|
||||
const { isChatPannelOpen, setIsChatPannelOpen, chat_id: chatId, setPodcast } = context;
|
||||
const { isChatPannelOpen, setIsChatPannelOpen, chat_id: chatId } = context;
|
||||
|
||||
const generatePodcast = async (request: GeneratePodcastRequest) => {
|
||||
try {
|
||||
|
|
@ -42,10 +42,6 @@ export function ChatPanelContainer() {
|
|||
throw new Error(errorData.detail || "Failed to generate podcast");
|
||||
}
|
||||
|
||||
const result = await response.json();
|
||||
|
||||
setPodcast(result);
|
||||
|
||||
toast.success(`Podcast generation started!`);
|
||||
} catch (error) {
|
||||
console.error("Error generating podcast:", error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue