diff --git a/lightrag_webui/src/components/graph/PropertyEditDialog.tsx b/lightrag_webui/src/components/graph/PropertyEditDialog.tsx index 001861a6..457b2b48 100644 --- a/lightrag_webui/src/components/graph/PropertyEditDialog.tsx +++ b/lightrag_webui/src/components/graph/PropertyEditDialog.tsx @@ -88,9 +88,10 @@ const PropertyEditDialog = ({ }; const handleSave = async () => { - if (value.trim() !== '') { + const trimmedValue = value.trim() + if (trimmedValue !== '') { const options = propertyName === 'entity_id' ? { allowMerge } : undefined - await onSave(value, options) + await onSave(trimmedValue, options) } }