From 3f81dc3e9438f3534e4015679ffd870658454581 Mon Sep 17 00:00:00 2001 From: Jurgis Sakalauskas Date: Wed, 15 Oct 2025 09:45:21 +0300 Subject: [PATCH] changes --- client/src/components/item-form-modal.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) 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,