mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-25 09:50:19 +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 () {
|
function changeDisplayName () {
|
||||||
client.update(object, {
|
client.update(object, {
|
||||||
displayName: displayName === '' ? null : displayName
|
displayName: displayName.trim() === '' ? null : displayName
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
function changeDisplayName () {
|
function changeDisplayName () {
|
||||||
if (employee) {
|
if (employee) {
|
||||||
client.update(employee, {
|
client.update(employee, {
|
||||||
displayName: displayName === '' ? null : displayName
|
displayName: displayName.trim() === '' ? null : displayName
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user