From 71b27ec4aa24b5fdbaf00ae7cb900e1ba5f235f5 Mon Sep 17 00:00:00 2001 From: yangdx Date: Fri, 31 Oct 2025 00:08:02 +0800 Subject: [PATCH] Optimize property edit dialog to use trimmed value consistently --- lightrag_webui/src/components/graph/PropertyEditDialog.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) } }