fix: avoid log error when cancelling (#5477)
This commit is contained in:
parent
9109b87269
commit
48c7dade1c
|
@ -146,9 +146,11 @@ const ChangeAvatarView = () => {
|
||||||
type: AvatarStateActions.CHANGE_AVATAR,
|
type: AvatarStateActions.CHANGE_AVATAR,
|
||||||
payload: { url: response.path, data: `data:image/jpeg;base64,${response.data}`, service: 'upload' }
|
payload: { url: response.path, data: `data:image/jpeg;base64,${response.data}`, service: 'upload' }
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
|
if(error?.code !== "E_PICKER_CANCELLED") {
|
||||||
log(error);
|
log(error);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const deletingRoomAvatar = context === 'room' && state.data === null;
|
const deletingRoomAvatar = context === 'room' && state.data === null;
|
||||||
|
|
Loading…
Reference in New Issue