@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 +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -2428,7 +2428,7 @@ const explorerTags = guppyApi.enhanceEndpoints({
|
|
|
2428
2428
|
// this is to make it easier to work with in the table component
|
|
2429
2429
|
// currently only supports one level of nesting
|
|
2430
2430
|
// also puts original into subRows for dropdown viewing
|
|
2431
|
-
const tempResponse = response.data[`${args
|
|
2431
|
+
const tempResponse = response.data[`${args?.indexPrefix ?? ''}${args.type}`].map((item)=>{
|
|
2432
2432
|
const tempItem = item;
|
|
2433
2433
|
for(let i = 0; i < containsDotsUniqueBase.length; i++){
|
|
2434
2434
|
const basePart = containsDotsUniqueBase[i];
|
|
@@ -2453,7 +2453,7 @@ const explorerTags = guppyApi.enhanceEndpoints({
|
|
|
2453
2453
|
return {
|
|
2454
2454
|
data: {
|
|
2455
2455
|
_aggregation: response.data._aggregation,
|
|
2456
|
-
[`${args
|
|
2456
|
+
[`${args?.indexPrefix ?? ''}${args.type}`]: tempResponse
|
|
2457
2457
|
}
|
|
2458
2458
|
};
|
|
2459
2459
|
}
|
|
@@ -2592,7 +2592,7 @@ const explorerTags = guppyApi.enhanceEndpoints({
|
|
|
2592
2592
|
};
|
|
2593
2593
|
},
|
|
2594
2594
|
transformResponse: (response, _meta, args)=>{
|
|
2595
|
-
return response[`${args
|
|
2595
|
+
return response[`${args?.indexPrefix ?? ''}_mapping`];
|
|
2596
2596
|
}
|
|
2597
2597
|
}),
|
|
2598
2598
|
getSharedFieldsForIndex: builder.query({
|