Skip to content

Commit 850674a

Browse files
1 parent 8510ffb commit 850674a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: app/webapp/Component.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models", "z2ui5/cc/Server
88
]
99
},
1010
async init() {
11+
12+
z2ui5.oConfig = {};
13+
1114
UIComponent.prototype.init.apply(this, arguments);
1215

1316
if (typeof z2ui5 == 'undefined') {
@@ -24,7 +27,6 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models", "z2ui5/cc/Server
2427
z2ui5.oDeviceModel = Models.createDeviceModel();
2528
this.setModel(z2ui5.oDeviceModel, "device");
2629

27-
z2ui5.oConfig = {};
2830
z2ui5.oConfig.ComponentData = this.getComponentData();
2931

3032
try {
@@ -79,4 +81,4 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models", "z2ui5/cc/Server
7981
UIComponent.prototype.exit.apply(this, arguments);
8082
},
8183
});
82-
});
84+
});

0 commit comments

Comments
 (0)