UBER-136: Fix Exception with custom attributes (#3195)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2023-05-16 19:22:14 +07:00 committed by GitHub
parent f39514ee73
commit 1b9b25e0a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@
if (value === undefined) return
let str = ''
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 {
str = value
}