2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 02:25:38 +00:00

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

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
}