Browse Source

fix(textarea): empty string as fallback (#3463)

Dicha Zelianivan Arkana 8 months ago
parent
commit
6edb9a16b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      webview-ui/src/components/prompts/PromptsView.tsx

+ 1 - 1
webview-ui/src/components/prompts/PromptsView.tsx

@@ -1002,7 +1002,7 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
 						})}
 					</div>
 					<VSCodeTextArea
-						value={customInstructions}
+						value={customInstructions || ""}
 						onChange={(e) => {
 							const value =
 								(e as unknown as CustomEvent)?.detail?.target?.value ||