@pega/angular-sdk-overrides 0.23.10 → 0.23.11
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.
|
@@ -108,7 +108,7 @@ export class DefaultFormComponent implements OnInit, OnDestroy {
|
|
|
108
108
|
// normalize them
|
|
109
109
|
const children = ReferenceComponent.normalizePConnArray(kids[0].getPConnect().getChildren());
|
|
110
110
|
|
|
111
|
-
const visibleChildren = children
|
|
111
|
+
const visibleChildren = children?.filter(child => child !== undefined) || [];
|
|
112
112
|
|
|
113
113
|
if (areViewsChanged(this.arChildren$, visibleChildren)) {
|
|
114
114
|
this.arChildren$ = visibleChildren;
|
|
@@ -44,18 +44,19 @@ function getFieldWidth(field, label) {
|
|
|
44
44
|
export const getContext = thePConn => {
|
|
45
45
|
const contextName = thePConn.getContextName();
|
|
46
46
|
const pageReference = thePConn.getPageReference();
|
|
47
|
-
|
|
48
|
-
// not always in config of state props
|
|
49
|
-
let { referenceList } = thePConn.getStateProps()?.config || thePConn.getStateProps();
|
|
47
|
+
const { readonlyContextList, referenceList = readonlyContextList } = thePConn.getStateProps()?.config || thePConn.getStateProps();
|
|
50
48
|
const pageReferenceForRows = referenceList.startsWith('.') ? `${pageReference}.${referenceList.substring(1)}` : referenceList;
|
|
49
|
+
const viewName = thePConn.viewName;
|
|
51
50
|
|
|
52
51
|
// removing "caseInfo.content" prefix to avoid setting it as a target while preparing pageInstructions
|
|
53
|
-
|
|
52
|
+
// skipping the removal as StateMachine itself is removing this case info prefix while preparing pageInstructions
|
|
53
|
+
// referenceList = pageReferenceForRows.replace(PCore.getConstants().CASE_INFO.CASE_INFO_CONTENT, '');
|
|
54
54
|
|
|
55
55
|
return {
|
|
56
56
|
contextName,
|
|
57
57
|
referenceListStr: referenceList,
|
|
58
|
-
pageReferenceForRows
|
|
58
|
+
pageReferenceForRows,
|
|
59
|
+
viewName
|
|
59
60
|
};
|
|
60
61
|
};
|
|
61
62
|
|