mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
QFix for duplicate undefined in list (#6068)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
8601d7c382
commit
6d2f17b2cb
@ -481,7 +481,12 @@ export function groupByPersonAccountCategories (categories: any[]): AggregateVal
|
||||
.map((it) => new AggregateValueData(it.person, it._id, it.space))
|
||||
fst = new AggregateValue(personAccount.person, people)
|
||||
personMap.set(personAccount.person, fst)
|
||||
existingCategories.push(fst)
|
||||
if (fst.name === undefined) {
|
||||
existingCategories[0] = new AggregateValue(undefined, [...existingCategories[0].values, ...fst.values])
|
||||
// Join with first value
|
||||
} else {
|
||||
existingCategories.push(fst)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user