diff --git a/client/src/components/item-form-modal.tsx b/client/src/components/item-form-modal.tsx index 2d98a0a..0d81795 100644 --- a/client/src/components/item-form-modal.tsx +++ b/client/src/components/item-form-modal.tsx @@ -376,10 +376,18 @@ export function ItemFormModal({ for (const attribute of attributeEntries) { const key = attribute.key.trim(); if (!key) { + if (!attribute.value.trim()) { + continue; + } setError('Attribute name cannot be empty.'); return; } + const trimmedValue = attribute.value.trim(); + if (!trimmedValue.length && !attribute.forcedString) { + continue; + } + const inference = inferScalarValue( attribute.value, attribute.forcedString,