mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-24 23:15:11 +00:00
fix: Fix issue with profile picture not updating (#10532)
This PR resolves the issue with updating the profile picture in the profile settings. **Cause of issue** The issue can be reproduced with the old `ProfileAvatar.vue` component. While the exact reason is unclear, it seems related to cases where the file might be `null`. **Solution** Replaced the old `ProfileAvatar.vue` with `Avatar.vue` and tested it. It works fine. I’ve attached a loom video below. Fixes https://linear.app/chatwoot/issue/CW-3768/profile-picture-bug Co-authored-by: Pranav <pranav@chatwoot.com> Co-authored-by: Pranav <pranavrajs@gmail.com>
This commit is contained in:
@@ -133,9 +133,10 @@ export const actions = {
|
||||
}
|
||||
},
|
||||
|
||||
deleteAvatar: async () => {
|
||||
deleteAvatar: async ({ commit }) => {
|
||||
try {
|
||||
await authAPI.deleteAvatar();
|
||||
const response = await authAPI.deleteAvatar();
|
||||
commit(types.SET_CURRENT_USER, response.data);
|
||||
} catch (error) {
|
||||
// Ignore error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user