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,
[key]: checked
? null
: prop.type === "boolean"
? false
: prop.default,
: prop.default !== null
? prop.default
: prop.type === "boolean"
? false
: prop.type === "string"
? ""
: prop.type === "number" ||
prop.type === "integer"
? undefined
: undefined,
})
}
/>