Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2022-04-08 16:20:16 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2022-04-08 16:20:16 +0300
commitf8db297e87e851498f6ea0f85b48c71ec51712d9 (patch)
tree8b1427a78dd35be2d9611d212fab7926c8611666 /src
parenta30b96ec17f9103e7544100a5a5e5c7bcf51a112 (diff)
Fix mailbox fetching after creating an account
The response structure changed and we have to access the account object from a nested `data` property now. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src')
-rw-r--r--src/service/AccountService.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service/AccountService.js b/src/service/AccountService.js
index cbd8b12f9..d9c1716cd 100644
--- a/src/service/AccountService.js
+++ b/src/service/AccountService.js
@@ -13,7 +13,7 @@ export const create = (data) => {
return axios
.post(url, data)
- .then((resp) => resp.data)
+ .then((resp) => resp.data.data)
.then(fixAccountId)
.catch((e) => {
if (e.response && e.response.status === 400) {