mirror of
https://github.com/mattermost/focalboard.git
synced 2024-11-24 08:22:29 +02:00
Handle missing option id when grouping cards
This commit is contained in:
parent
fa92e0fbfd
commit
48719f16ce
@ -189,12 +189,16 @@ class MutableBoardTree implements BoardTree {
|
||||
for (const optionId of optionIds) {
|
||||
if (optionId) {
|
||||
const option = groupByProperty.options.find(o => o.id === optionId)
|
||||
const cards = this.cards.filter((o) => optionId === o.properties[groupByProperty.id])
|
||||
const group: Group = {
|
||||
option,
|
||||
cards
|
||||
if (option) {
|
||||
const cards = this.cards.filter((o) => optionId === o.properties[groupByProperty.id])
|
||||
const group: Group = {
|
||||
option,
|
||||
cards
|
||||
}
|
||||
groups.push(group)
|
||||
} else {
|
||||
Utils.logError(`groupCardsByOptions: Missing option with id: ${optionId}`)
|
||||
}
|
||||
groups.push(group)
|
||||
} else {
|
||||
// Empty group
|
||||
const emptyGroupCards = this.cards.filter((o) => {
|
||||
|
Loading…
Reference in New Issue
Block a user