Fix for clearable form fields (#6518)

This commit is contained in:
Oliver 2024-02-19 17:41:31 +11:00 committed by GitHub
parent ed95cf2a8f
commit 6e932f85cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -192,7 +192,7 @@ export function ApiFormField({
radius="sm"
onChange={(event) => onChange(event.currentTarget.value)}
rightSection={
definition.value && !definition.required ? (
value && !definition.required ? (
<IconX size="1rem" color="red" onClick={() => onChange('')} />
) : null
}