mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 12:08:01 +00:00
fixed object destructuring to fallback to {} when meta.team is null (#2158)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user