@integry/sdk 4.6.14 → 4.6.15

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": "@integry/sdk",
3
- "version": "4.6.14",
3
+ "version": "4.6.15",
4
4
  "description": "Integry SDK",
5
5
  "main": "dist/umd/index.umd.js",
6
6
  "module": "dist/esm/index.csm.js",
@@ -277,7 +277,12 @@ const ListBox = (props: ListBoxProps) => {
277
277
  setLoading(true);
278
278
  let data;
279
279
  try {
280
- data = JSON.parse(endpointData) || {};
280
+ if (endpointData.indexOf('/functions/') !== -1) {
281
+ data = JSON.parse(endpointData) || {};
282
+ } else {
283
+ data = {};
284
+ }
285
+
281
286
  if (selectedAuthId) {
282
287
  data.connected_account_id = selectedAuthId;
283
288
  data.authorization_id = selectedAuthId;