Handle tri state nullable boolean in null checkbox
This commit is contained in:
parent
1a93897533
commit
acf30b077a
1 changed files with 10 additions and 3 deletions
|
|
@ -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,
|
||||
})
|
||||
}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue