Merge pull request #5406 from ChatGPTNextWeb/river

fix: #4240 remove tip when 0 context
This commit is contained in:
Dogtiti 2024-09-12 21:48:11 +08:00 committed by GitHub
commit 07c6fe5975
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ function PromptToast(props: {
return ( return (
<div className={styles["prompt-toast"]} key="prompt-toast"> <div className={styles["prompt-toast"]} key="prompt-toast">
{props.showToast && ( {props.showToast && context.length > 0 && (
<div <div
className={styles["prompt-toast-inner"] + " clickable"} className={styles["prompt-toast-inner"] + " clickable"}
role="button" role="button"