From d32faf12f233af41d5bb3ccd0d98b828ad9bb6a9 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 5 Jul 2023 11:33:50 +0800 Subject: [PATCH] fix: app update var break old conversation --- app/components/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/components/index.tsx b/app/components/index.tsx index 6164f35..3ebc4b8 100644 --- a/app/components/index.tsx +++ b/app/components/index.tsx @@ -244,6 +244,9 @@ const Main: FC = () => { } const checkCanSend = () => { + if (currConversationId !== '-1') + return true + if (!currInputs || !promptConfig?.prompt_variables) return true