@veritree/services 2.35.0-0 → 2.35.1-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/services",
3
- "version": "2.35.0-0",
3
+ "version": "2.35.1-0",
4
4
  "description": "A collection of javascript functions/services to talk to veritree API",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -156,8 +156,11 @@ export default class Api {
156
156
 
157
157
  if (!this.orgId && !this.orgType) {
158
158
  const session = getSession();
159
- this.orgId = session.orgId;
160
- this.orgType = session.orgType;
159
+
160
+ if(session) {
161
+ this.orgId = session?.orgId;
162
+ this.orgType = session?.orgType;
163
+ }
161
164
  }
162
165
 
163
166
  return `?${orgIdParam}${orgTypeParam}${createParamsStringFromArgs(