From dd2c8ea7079a3bf47602d69c0e6523c9ca0e1ed1 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 6 Mar 2021 19:07:51 +0100 Subject: [PATCH] Handle error --- assets/js/common/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/common/api.js b/assets/js/common/api.js index 97f79a71..131888c0 100644 --- a/assets/js/common/api.js +++ b/assets/js/common/api.js @@ -39,7 +39,7 @@ const APIClient = { return new Promise((res, rej) => { this.makeFormDatarequest(uri, data, withLogin, (result) => { if (result.error) - reject(result.error); + rej(result.error); else res(result);