mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix: e.response is not defined
This commit is contained in:
@@ -549,7 +549,7 @@ function parseS3Error(data) {
|
||||
}
|
||||
|
||||
function handleS3Error(e, message) {
|
||||
if (axios.isAxiosError(e)) {
|
||||
if (axios.isAxiosError(e) && e.response?.data) {
|
||||
const error = parseS3Error(e.response.data);
|
||||
showToast("error", `${message}: [${error.Code}] ${error.Message}`);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user