@gen3/core 0.11.49 → 0.11.50

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/dist/cjs/index.js CHANGED
@@ -2448,7 +2448,7 @@ const explorerTags = guppyApi.enhanceEndpoints({
2448
2448
  // this is to make it easier to work with in the table component
2449
2449
  // currently only supports one level of nesting
2450
2450
  // also puts original into subRows for dropdown viewing
2451
- const tempResponse = response.data[`${args.indexPrefix}${args.type}`].map((item)=>{
2451
+ const tempResponse = response.data[`${args?.indexPrefix ?? ''}${args.type}`].map((item)=>{
2452
2452
  const tempItem = item;
2453
2453
  for(let i = 0; i < containsDotsUniqueBase.length; i++){
2454
2454
  const basePart = containsDotsUniqueBase[i];
@@ -2473,7 +2473,7 @@ const explorerTags = guppyApi.enhanceEndpoints({
2473
2473
  return {
2474
2474
  data: {
2475
2475
  _aggregation: response.data._aggregation,
2476
- [`${args.indexPrefix}${args.type}`]: tempResponse
2476
+ [`${args?.indexPrefix ?? ''}${args.type}`]: tempResponse
2477
2477
  }
2478
2478
  };
2479
2479
  }
@@ -2612,7 +2612,7 @@ const explorerTags = guppyApi.enhanceEndpoints({
2612
2612
  };
2613
2613
  },
2614
2614
  transformResponse: (response, _meta, args)=>{
2615
- return response[`${args.indexPrefix}_mapping`];
2615
+ return response[`${args?.indexPrefix ?? ''}_mapping`];
2616
2616
  }
2617
2617
  }),
2618
2618
  getSharedFieldsForIndex: builder.query({