diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-06-11 14:45:26 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-06-11 14:45:26 +0700 |
| commit | 39e37a51a16857a212050f2365bb99d69d5a1a68 (patch) | |
| tree | b66ef0698333d866514fd4a4d31058ddde26fc00 /src/core | |
| parent | 65cc2af8ba7bf6ced66572cdec779bef8cace564 (diff) | |
| parent | 2e507ccbc92f18a0d7f8ebc59112a0337a0bd678 (diff) | |
Merge branch 'feature/integrasi_biteship' 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); |
