Optimize property edit dialog to use trimmed value consistently

This commit is contained in:
yangdx 2025-10-31 00:08:02 +08:00
parent 4cbd876126
commit 71b27ec4aa

View file

@ -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)
}
}