mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fix(blocks): Fix boolean/toggle block input with false/disabled value
This commit is contained in:
@@ -1219,7 +1219,9 @@ const NodeBooleanInput: FC<{
|
||||
className?: string;
|
||||
displayName: string;
|
||||
}> = ({ selfKey, schema, value, error, handleInputChange, className }) => {
|
||||
value ||= schema.default ?? false;
|
||||
if (value == null) {
|
||||
value = schema.default ?? false;
|
||||
}
|
||||
return (
|
||||
<div className={className}>
|
||||
<Switch
|
||||
|
||||
Reference in New Issue
Block a user