Optimize property edit dialog to use trimmed value consistently
This commit is contained in:
parent
4cbd876126
commit
71b27ec4aa
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue