Skip to content

Commit bc534e0

Browse files
1 parent e1da8bd commit bc534e0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

app/webapp/Component.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,22 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models", "z2ui5/cc/Server
99
},
1010
async init() {
1111

12-
z2ui5.oConfig = {};
13-
12+
if (typeof z2ui5 !== 'undefined') {
13+
z2ui5.oConfig = {};
14+
}
15+
1416
UIComponent.prototype.init.apply(this, arguments);
1517

1618
if (typeof z2ui5 == 'undefined') {
1719
z2ui5 = {};
1820
}
1921
if (z2ui5?.checkLocal == false) {
20-
z2ui5 = {};
22+
z2ui5 = {};
2123
}
2224

25+
if (typeof z2ui5.oConfig == 'undefined') {
26+
z2ui5.oConfig = {};
27+
}
2328
z2ui5.oDeviceModel = Models.createDeviceModel();
2429
this.setModel(z2ui5.oDeviceModel, "device");
2530

0 commit comments

Comments
 (0)