fix(app): Toast when session is missing on prompt-submit (#12654)
This commit is contained in:
parent
d5036cf01f
commit
c639200ede
17 changed files with 24 additions and 1 deletions
|
|
@ -200,7 +200,14 @@ export function createPromptSubmit(input: PromptSubmitInput) {
|
|||
navigate(`/${base64Encode(sessionDirectory)}/session/${session.id}`)
|
||||
}
|
||||
}
|
||||
if (!session) return
|
||||
if (!session) {
|
||||
showToast({
|
||||
title: language.t("prompt.toast.promptSendFailed.title"),
|
||||
description: language.t("prompt.toast.promptSendFailed.description"),
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
input.onSubmit?.()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue