Pārlūkot izejas kodu

fix(CUSTOM_MODELS):#3349 Dependency chatStore otherwise the session and view will not updated

durian 1 gadu atpakaļ
vecāks
revīzija
261a8fd83b
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      app/components/chat.tsx

+ 1 - 2
app/components/chat.tsx

@@ -449,8 +449,7 @@ export function ChatActions(props: {
       );
       showToast(nextModel);
     }
-    // eslint-disable-next-line react-hooks/exhaustive-deps
-  }, [currentModel, models]);
+  }, [chatStore, currentModel, models]);
 
   return (
     <div className={styles["chat-input-actions"]}>