Support tri-state nullable boolean
This commit is contained in:
parent
541a59f1fe
commit
93fc8cc97e
1 changed files with 102 additions and 1 deletions
|
|
@ -179,7 +179,11 @@ const ToolsTab = ({
|
|||
onCheckedChange={(checked: boolean) =>
|
||||
setParams({
|
||||
...params,
|
||||
[key]: checked ? null : prop.default,
|
||||
[key]: checked
|
||||
? null
|
||||
: prop.type === "boolean"
|
||||
? false
|
||||
: prop.default,
|
||||
})
|
||||
}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue