@pega/dx-component-builder-sdk 0.23.15 → 0.23.16

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": "@pega/dx-component-builder-sdk",
3
- "version": "0.23.15",
3
+ "version": "0.23.16",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -100,7 +100,7 @@ export default function {{COMPONENT_CLASS_NAME}}(props: {{COMPONENT_CLASS_NAME}}
100
100
  // @ts-ignore
101
101
  displayComponent = (
102
102
  // @ts-ignore
103
- <PegaDxilMyBoolean value={value} trueLabel={trueLabel} falseLabel={falseLabel} />
103
+ <{{COMPONENT_CLASS_NAME}} value={value} trueLabel={trueLabel} falseLabel={falseLabel} />
104
104
  );
105
105
  }
106
106
 
@@ -680,10 +680,12 @@ export const readContextResponse = async (context, params) => {
680
680
  const dataViewName = PCore.getDataTypeUtils().getSavableDataPage(classID);
681
681
  const dataPageKeys = PCore.getDataTypeUtils().getDataPageKeys(dataViewName);
682
682
  dataPageKeys?.forEach(item => (item.isAlternateKeyStorage ? compositeKeys.push(item.linkedField) : compositeKeys.push(item.keyName)));
683
- if (compositeKeys.length) {
683
+ if (compositeKeys.length && otherContext) {
684
684
  otherContext.setCompositeKeys(compositeKeys);
685
685
  }
686
- otherContext.fetchRowActionDetails = null;
686
+ if (otherContext) {
687
+ otherContext.fetchRowActionDetails = null;
688
+ }
687
689
  }
688
690
 
689
691
  const presetArray = [];
@@ -680,10 +680,12 @@ export const readContextResponse = async (context, params) => {
680
680
  const dataViewName = PCore.getDataTypeUtils().getSavableDataPage(classID);
681
681
  const dataPageKeys = PCore.getDataTypeUtils().getDataPageKeys(dataViewName);
682
682
  dataPageKeys?.forEach(item => (item.isAlternateKeyStorage ? compositeKeys.push(item.linkedField) : compositeKeys.push(item.keyName)));
683
- if (compositeKeys.length) {
683
+ if (compositeKeys.length && otherContext) {
684
684
  otherContext.setCompositeKeys(compositeKeys);
685
685
  }
686
- otherContext.fetchRowActionDetails = null;
686
+ if (otherContext) {
687
+ otherContext.fetchRowActionDetails = null;
688
+ }
687
689
  }
688
690
 
689
691
  const presetArray = [];