Skip to content

Commit

Permalink
fix: Ensure that the checkbox for built-in ssh is correctly synced wi…
Browse files Browse the repository at this point in the history
…th the state from the config (#1428)
  • Loading branch information
PRTTMPRPHT authored Nov 27, 2024
1 parent 3392134 commit 6989545
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion desktop/src/views/Providers/AddProvider/OptionFormField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ export function OptionFormField({

switch (type) {
case "boolean":
return <Checkbox {...props}>{displayName}</Checkbox>
return (
<Checkbox {...props} defaultChecked={props.defaultValue === "true"}>
{displayName}
</Checkbox>
)
case "number":
return (
<Input
Expand Down

0 comments on commit 6989545

Please sign in to comment.