stop propagation in the chat panelcl

This commit is contained in:
CREDO23 2025-10-23 21:42:39 +02:00 committed by thierryverse
parent 9007436ff6
commit e47b1cb4c5
4 changed files with 34 additions and 36 deletions

View file

@ -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);