Update webview-ui/src/components/prompts/PromptsView.tsx

Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
This commit is contained in:
Hannes Rudolph 2025-03-08 22:32:40 -07:00 committed by GitHub
parent 74a0dcebf6
commit 47294dec56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -563,7 +563,7 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
*/}
<div style={{ marginBottom: 15 }}>
<VSCodeCheckbox
checked={enableCustomModeCreation || false}
checked={enableCustomModeCreation ?? true}
onChange={(e: any) => {
// Just update the local state through React context
// The React context will update the global state