Fix boolean config
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-06-17 19:13:43 +02:00
parent a2845ddafe
commit 1080ab5cb2

View File

@ -333,8 +333,7 @@ function CloudInitBooleanInput(p: {
label={p.name}
checked={p.yaml.getIn(p.attrPath) === true}
onValueChange={(v) => {
if (v) p.yaml.setIn(p.attrPath, v);
else p.yaml.deleteIn(p.attrPath);
p.yaml.setIn(p.attrPath, v);
p.onChange?.();
}}
/>