mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
chore: Fix the exception while destructuring data in chatwoot:error listener (#4702)
This commit is contained in:
@@ -61,9 +61,7 @@ export const actions = {
|
||||
dispatch('conversationAttributes/getAttributes', {}, { root: true });
|
||||
}
|
||||
} catch (error) {
|
||||
const {
|
||||
response: { data },
|
||||
} = error;
|
||||
const data = error && error.response && error.response.data ? error.response.data : error
|
||||
IFrameHelper.sendMessage({
|
||||
event: 'error',
|
||||
errorType: SET_USER_ERROR,
|
||||
|
||||
Reference in New Issue
Block a user