Просмотр исходного кода

Update apps/app/src/features/openai/client/services/editor-assistant.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Shun Miyazawa 10 месяцев назад
Родитель
Сommit
6fc97e17c6
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      apps/app/src/features/openai/client/services/editor-assistant.tsx

+ 3 - 1
apps/app/src/features/openai/client/services/editor-assistant.tsx

@@ -216,7 +216,9 @@ export const useEditorAssistant: UseEditorAssistant = () => {
       }
 
       // Hide spinner since data is flowing
-      setIsGeneratingEditorText(false);
+      if (isGeneratingEditorText) {
+        setIsGeneratingEditorText(false);
+      }
 
       // Set new timer
       timerRef.current = setTimeout(() => {