Преглед на файлове

fix: #4240 remove tip when 0 context

river преди 1 година
родител
ревизия
4b8288a2b2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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"