Explorar el Código

Merge pull request #5406 from ChatGPTNextWeb/river

fix: #4240 remove tip when 0 context
Dogtiti hace 1 año
padre
commit
07c6fe5975
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/components/chat.tsx

+ 1 - 1
app/components/chat.tsx

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