fix(client): use children component when nullable is false (#5746)

This commit is contained in:
Junyi 2024-11-28 10:30:57 +08:00 committed by GitHub
parent 2e3cbd160d
commit 4235b845d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -460,7 +460,7 @@ export function Input(props: VariableInputProps) {
</div>
) : (
<div style={{ flex: 1 }}>
{children && isFieldValue ? (
{children && (isFieldValue || !nullable) ? (
children
) : ConstantComponent ? (
<ConstantComponent