mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-09 09:20:54 +00:00
UBER-136: Fix Exception with custom attributes (#3195)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
f39514ee73
commit
1b9b25e0a8
@ -26,7 +26,7 @@
|
|||||||
if (value === undefined) return
|
if (value === undefined) return
|
||||||
let str = ''
|
let str = ''
|
||||||
if (Array.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
str = value.reduce((acc, curr, i) => (acc += i === 0 ? curr : ` ${curr}`))
|
str = value.reduce((acc, curr, i) => (acc += i === 0 ? curr : ` ${curr}`), '')
|
||||||
} else {
|
} else {
|
||||||
str = value
|
str = value
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user