fix: Cannot read properties of undefined (reading 'filter') (#7522)
This commit is contained in:
@@ -49,8 +49,7 @@ const getters = {
|
|||||||
},
|
},
|
||||||
getSelectedChatAttachments: (_state, _getters) => {
|
getSelectedChatAttachments: (_state, _getters) => {
|
||||||
const selectedChat = _getters.getSelectedChat;
|
const selectedChat = _getters.getSelectedChat;
|
||||||
const { attachments } = selectedChat;
|
return selectedChat.attachments || [];
|
||||||
return attachments;
|
|
||||||
},
|
},
|
||||||
getLastEmailInSelectedChat: (stage, _getters) => {
|
getLastEmailInSelectedChat: (stage, _getters) => {
|
||||||
const selectedChat = _getters.getSelectedChat;
|
const selectedChat = _getters.getSelectedChat;
|
||||||
|
|||||||
Reference in New Issue
Block a user