summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-06-11 13:40:45 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-06-11 13:40:45 +0700
commit2e507ccbc92f18a0d7f8ebc59112a0337a0bd678 (patch)
tree61fa5c3b60ac3b920311e77a539a87ec0b18046e /src/core
parentca05a70e98e9066882de6394ffbd89db7af2cb9d (diff)
<hafid> Pinpoint done
Diffstat (limited to 'src/core')
-rw-r--r--src/core/api/odooApi.js2
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);