@veritree/services 2.21.2-1 → 2.21.2-2

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.21.2-1",
3
+ "version": "2.21.2-2",
4
4
  "description": "A collection of javascript functions/services to talk to veritree API",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -192,7 +192,7 @@ export default class Api {
192
192
  if (!isOrgLess && !isOrgAs) {
193
193
  if (this.orgId) orgIdParam = `org_id=${this.orgId}`;
194
194
  if (this.orgType) orgTypeParam = `&org_type=${this.orgType}`;
195
- if (args?.orgType) orgTypeParam = `&org_type=${args.orgType}`;
195
+ if (args && args.orgType) orgTypeParam = `&org_type=${args.orgType}`;
196
196
  }
197
197
 
198
198
  return `?${orgIdParam}${orgTypeParam}${createParamsStringFromArgs(args)}`;