Procházet zdrojové kódy

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

Dicha Zelianivan Arkana před 8 měsíci
rodič
revize
6edb9a16b8
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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>
 					</div>
 					<VSCodeTextArea
 					<VSCodeTextArea
-						value={customInstructions}
+						value={customInstructions || ""}
 						onChange={(e) => {
 						onChange={(e) => {
 							const value =
 							const value =
 								(e as unknown as CustomEvent)?.detail?.target?.value ||
 								(e as unknown as CustomEvent)?.detail?.target?.value ||