mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
Trim display name (#3023)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
dee07c0bce
commit
20305973d4
@ -73,7 +73,7 @@
|
||||
|
||||
function changeDisplayName () {
|
||||
client.update(object, {
|
||||
displayName: displayName === '' ? null : displayName
|
||||
displayName: displayName.trim() === '' ? null : displayName
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -77,7 +77,7 @@
|
||||
function changeDisplayName () {
|
||||
if (employee) {
|
||||
client.update(employee, {
|
||||
displayName: displayName === '' ? null : displayName
|
||||
displayName: displayName.trim() === '' ? null : displayName
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user