fix: bug fix
This commit is contained in:
@@ -18,7 +18,7 @@ export const KnowledgeSettings = () => {
|
||||
const { data, status } = useQuery({
|
||||
queryKey: ["fetchAllKnowledge"],
|
||||
queryFn: () => getAllKnowledge(),
|
||||
refetchInterval: 1000
|
||||
refetchInterval: 1000,
|
||||
})
|
||||
|
||||
const { mutate: deleteKnowledgeMutation, isPending: isDeleting } =
|
||||
|
||||
@@ -104,7 +104,6 @@ export const Playground = () => {
|
||||
const lastUsedPrompt = await getLastUsedChatSystemPrompt(
|
||||
recentChat.history.id
|
||||
)
|
||||
console.log("lastUsedPrompt", lastUsedPrompt)
|
||||
if (lastUsedPrompt) {
|
||||
if (lastUsedPrompt.prompt_id) {
|
||||
const prompt = await getPromptById(lastUsedPrompt.prompt_id)
|
||||
|
||||
@@ -291,7 +291,7 @@ export const GeneralSettings = () => {
|
||||
await browser.storage.local.clear()
|
||||
await browser.storage.session.clear()
|
||||
} catch (e) {
|
||||
console.log("Error clearing storage:", e)
|
||||
console.error("Error clearing storage:", e)
|
||||
}
|
||||
}
|
||||
}}
|
||||
|
||||
@@ -46,7 +46,7 @@ export const TTSModeSettings = ({ hideBorder }: { hideBorder?: boolean }) => {
|
||||
return { voices, models }
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
console.error(e)
|
||||
message.error("Error fetching ElevenLabs data")
|
||||
}
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user