diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-06-11 16:32:12 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-06-11 16:32:12 +0700 |
| commit | 12120666385e8c9d68cb1b8a6d41d3943e5aab47 (patch) | |
| tree | 514415ddea7b90a7f58fee6b508310eb10046440 /src/core | |
| parent | 43bed6bf9ebe559e32e7572ea17278b5f3b0897c (diff) | |
| parent | 39e37a51a16857a212050f2365bb99d69d5a1a68 (diff) | |
Merge branch 'biteship-merge' of https://bitbucket.org/altafixco/next-indoteknik into biteship-merge
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/api/odooApi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/api/odooApi.js b/src/core/api/odooApi.js index 2bff42e2..ab3dedb0 100644 --- a/src/core/api/odooApi.js +++ b/src/core/api/odooApi.js @@ -65,7 +65,7 @@ const odooApi = async (method, url, data = {}, headers = {}) => { let res = await axios(axiosParameter); - if (res.data.status.code === 401) { + if (res.data?.status?.code === 401) { if (connectionAttempt < maxConnectionAttempt) { await renewToken(); return odooApi(method, url, data, headers); |
