You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -22,6 +23,7 @@ export default function GeneratedTextSection({
22
23
description,
23
24
analysis,
24
25
recommendedActions,
26
+
isManualMode =false,
25
27
onDescriptionChange,
26
28
onAnalysisChange,
27
29
onRecommendedActionsChange,
@@ -37,9 +39,15 @@ export default function GeneratedTextSection({
37
39
38
40
// Update local state when props change (e.g., when AI generates new content)
39
41
useEffect(()=>{
40
-
constformattedText=`Description:\n${description||'AI-generated description will appear here...'}\n\nAnalysis:\n${analysis||'AI-generated analysis will appear here...'}\n\nRecommended Actions:\n${recommendedActions||'AI-generated recommended actions will appear here...'}`;
41
-
setTextareaValue(formattedText);
42
-
},[description,analysis,recommendedActions]);
42
+
// For manual mode, don't show placeholders - use empty strings
constformattedText=`Description:\n${description||'AI-generated description will appear here...'}\n\nAnalysis:\n${analysis||'AI-generated analysis will appear here...'}\n\nRecommended Actions:\n${recommendedActions||'AI-generated recommended actions will appear here...'}`;
0 commit comments