From ed330566e386b42266ba7773a5bc469487f58f79 Mon Sep 17 00:00:00 2001 From: josc146 Date: Wed, 24 May 2023 23:17:08 +0800 Subject: [PATCH] fix --- frontend/src/pages/Completion.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/pages/Completion.tsx b/frontend/src/pages/Completion.tsx index f6a6af3..f444006 100644 --- a/frontend/src/pages/Completion.tsx +++ b/frontend/src/pages/Completion.tsx @@ -137,6 +137,7 @@ const CompletionPanel: FC = observer(() => { const onSubmit = (prompt: string) => { if (commonStore.status.modelStatus === ModelStatus.Offline) { toast(t('Please click the button in the top right corner to start the model'), { type: 'warning' }); + commonStore.setCompletionGenerating(false); return; }