diff --git a/packages/website/docs/_samples/patterns/AIQuickPrompt/main.js b/packages/website/docs/_samples/patterns/AIQuickPrompt/main.js index 65632a2ba8a4..467c2e43f80a 100644 --- a/packages/website/docs/_samples/patterns/AIQuickPrompt/main.js +++ b/packages/website/docs/_samples/patterns/AIQuickPrompt/main.js @@ -163,7 +163,6 @@ function startTextGeneration(button, state, predefinedTexts) { function stopBusyIndicatorAndGenerateText(button, predefinedTexts, textKey) { setTimeout(() => { - quickPromptBusyIndicator.active = false; generateText(predefinedTexts[translationKey][textKey || currentTextKey], button); }, 2000); startQuickPromptGeneration(button); @@ -229,6 +228,7 @@ function generateText(text, button) { clearInterval(generationId); sendButton.disabled = false; output.disabled = false; + quickPromptBusyIndicator.active = false; } }, 75); } \ No newline at end of file