Handle tri state nullable boolean in null checkbox

This commit is contained in:
olaservo 2025-10-19 11:01:37 -07:00
commit acf30b077a

View file

@ -181,9 +181,16 @@ const ToolsTab = ({
...params, ...params,
[key]: checked [key]: checked
? null ? null
: prop.default !== null
? prop.default
: prop.type === "boolean" : prop.type === "boolean"
? false ? false
: prop.default, : prop.type === "string"
? ""
: prop.type === "number" ||
prop.type === "integer"
? undefined
: undefined,
}) })
} }
/> />