Skip to content

Commit e540975

Browse files
Initialization of object "oConfig" was on the wrong place (#32)
* Initialization of object "oConfig" was on the wrong place * fix for lower releases * fix low releases --------- Co-authored-by: oblomov-dev <[email protected]>
1 parent b9b92b8 commit e540975

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/02/z2ui5.wapa.component.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,23 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models", "z2ui5/cc/Server
88
]
99
},
1010
async init() {
11-
12-
z2ui5.oConfig = {};
11+
12+
if (typeof z2ui5 !== 'undefined') {
13+
z2ui5.oConfig = {};
14+
}
1315

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)