Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,15 @@ export default function ViewContainer(props: ViewContainerProps) {
const latestItem = items[key];
const rootView = latestItem.view;
const { context, name: viewName } = rootView.config;
const target = key.substring(0, key.lastIndexOf('_'));
const config: any = { meta: rootView };
config.options = {
context: latestItem.context,
pageReference: context || getPConnect().getPageReference(),
containerName: getPConnect().getContainerName(),
containerItemName: key,
hasForm: viewName === CREATE_DETAILS_VIEW_NAME
containerItemID: key,
hasForm: viewName === CREATE_DETAILS_VIEW_NAME,
target
};
const configObject: any = PCore.createPConnect(config);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function DeferLoad(props: DeferLoadProps) {

const getViewOptions = () => ({
viewContext: resourceType,
pageClass: loadViewCaseID ? '' : (pConnect.getDataObject('') as any).pyPortal.classID, // 2nd arg empty string until typedef allows optional
pageClass: loadViewCaseID ? '' : (pConnect.getDataObject('') as any).pyPortal?.classID, // 2nd arg empty string until typedef allows optional
container: isContainerPreview ? 'preview' : undefined,
containerName: isContainerPreview ? 'preview' : undefined,
updateData: isContainerPreview
Expand Down
Loading