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