.flatMap -> .flat

This commit is contained in:
Kristjan ESPERANTO 2025-03-01 12:07:06 +01:00
parent d30c6a4f5e
commit e813dbdae6
No known key found for this signature in database

View file

@ -16,7 +16,7 @@ const parseRemarks = (ctx, ref) => {
ref.attributNotizen || [],
ref.attributes || [],
ref.verkehrsmittel?.zugattribute || [],
].flatMap(item => item)
].flat()
.map(remark => {
if (remark.kategorie || remark.priority) {
const res = ctx.profile.parseHintByCode(remark);