mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-04-20 23:23:56 +03:00
.flatMap -> .flat
This commit is contained in:
parent
d30c6a4f5e
commit
e813dbdae6
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ const parseRemarks = (ctx, ref) => {
|
||||||
ref.attributNotizen || [],
|
ref.attributNotizen || [],
|
||||||
ref.attributes || [],
|
ref.attributes || [],
|
||||||
ref.verkehrsmittel?.zugattribute || [],
|
ref.verkehrsmittel?.zugattribute || [],
|
||||||
].flatMap(item => item)
|
].flat()
|
||||||
.map(remark => {
|
.map(remark => {
|
||||||
if (remark.kategorie || remark.priority) {
|
if (remark.kategorie || remark.priority) {
|
||||||
const res = ctx.profile.parseHintByCode(remark);
|
const res = ctx.profile.parseHintByCode(remark);
|
||||||
|
|
Loading…
Add table
Reference in a new issue