fixed object destructuring to fallback to {} when meta.team is null (#2158)
This commit is contained in:
parent
285f7bbeb5
commit
78996937ce
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ export const applyPageFilters = (conversation, filters) => {
|
|||
labels: chatLabels = [],
|
||||
meta = {},
|
||||
} = conversation;
|
||||
const { team = {} } = meta;
|
||||
const team = meta.team || {};
|
||||
const { id: chatTeamId } = team;
|
||||
const filterByStatus = chatStatus === status;
|
||||
let shouldFilter = filterByStatus;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue