diff --git a/packages/api/package-lock.json b/packages/api/package-lock.json index 535b50c21d..9d789b293b 100644 --- a/packages/api/package-lock.json +++ b/packages/api/package-lock.json @@ -1,6 +1,6 @@ { "name": "litefarm-api", - "version": "3.6.4", + "version": "3.6.4.1", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/packages/api/package.json b/packages/api/package.json index 8ed8917113..5023757bc9 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "litefarm-api", - "version": "3.6.4", + "version": "3.6.4.1", "description": "LiteFarm API server", "main": "./api/src/server.js", "type": "module", diff --git a/packages/api/src/server.js b/packages/api/src/server.js index 3880ebd69d..4f0ccca46d 100644 --- a/packages/api/src/server.js +++ b/packages/api/src/server.js @@ -39,7 +39,7 @@ if (process.env.SENTRY_DSN && environment !== 'development') { // Automatically instrument Node.js libraries and frameworks ...Sentry.autoDiscoverNodePerformanceMonitoringIntegrations(), ], - release: '3.6.4', + release: '3.6.4.1', // Set tracesSampleRate to 1.0 to capture 100% // of transactions for performance monitoring. // We recommend adjusting this value in production diff --git a/packages/webapp/package.json b/packages/webapp/package.json index b74e61d87e..24b1d4b0cf 100644 --- a/packages/webapp/package.json +++ b/packages/webapp/package.json @@ -1,6 +1,6 @@ { "name": "litefarm-webapp", - "version": "3.6.4", + "version": "3.6.4.1", "description": "LiteFarm Web application", "type": "module", "scripts": { diff --git a/packages/webapp/src/containers/saga.js b/packages/webapp/src/containers/saga.js index 2823022440..b3f0f3f55d 100644 --- a/packages/webapp/src/containers/saga.js +++ b/packages/webapp/src/containers/saga.js @@ -161,11 +161,11 @@ axiosWithoutInterceptors.interceptors.response.use( return response; }, function (error) { - if (error?.response?.status === 401) { + if (error?.response?.status === 401 && error?.config?.url?.startsWith(url)) { if (localStorage.getItem('id_token')) { logout(); } - } else if (error?.response?.status === 403) { + } else if (error?.response?.status === 403 && error?.config?.url?.startsWith(url)) { store?.dispatch(handle403()); } return Promise.reject(error); diff --git a/packages/webapp/src/main.jsx b/packages/webapp/src/main.jsx index 6bc3922ac1..688454ab71 100644 --- a/packages/webapp/src/main.jsx +++ b/packages/webapp/src/main.jsx @@ -85,7 +85,7 @@ if (import.meta.env.VITE_SENTRY_DSN) { Sentry.init({ dsn: import.meta.env.VITE_SENTRY_DSN, integrations: [new Integrations.BrowserTracing()], - release: '3.6.4', + release: '3.6.4.1', // Set tracesSampleRate to 1.0 to capture 100% // of transactions for performance monitoring. // We recommend adjusting this value in production