Skip to content

Commit 0a1f1c4

Browse files
1 parent a698fe2 commit 0a1f1c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/webapp/controller/View1.controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ sap.ui.define(["sap/ui/core/mvc/Controller", "sap/ui/core/mvc/XMLView", "sap/ui/
5656
await this.displayPopover(S_POPOVER.XML, 'oViewPopover', S_POPOVER.OPEN_BY_ID);
5757
}
5858

59-
let oState = JSON.parse(JSON.stringify({ view: z2ui5.oView.mProperties.viewContent, model: z2ui5.oView.getModel().getData(), response: z2ui5.oResponse }));
59+
if (z2ui5.oView) { var oState = JSON.parse(JSON.stringify({ view: z2ui5.oView.mProperties.viewContent, model: z2ui5.oView.getModel().getData(), response: z2ui5.oResponse })); }else{ oState = {}; }
6060
if (SET_PUSH_STATE) {
6161
// sap.ui.core.routing.HashChanger.getInstance().setHash("423143124");
6262
// sap.ui.core.routing.HashChanger.getInstance().replaceHash("423143124");
@@ -576,4 +576,4 @@ sap.ui.define(["sap/ui/core/mvc/Controller", "sap/ui/core/mvc/XMLView", "sap/ui/
576576
z2ui5.oApp.insertPage(z2ui5.oView);
577577
},
578578
})
579-
});
579+
});

0 commit comments

Comments
 (0)