fix launchpad initialization (#1826)

This commit is contained in:
oblomov-dev 2025-04-10 11:26:39 +02:00 committed by GitHub
parent dd0ade0ed6
commit f413e431e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,17 +9,22 @@ sap.ui.define(["sap/ui/core/UIComponent", "z2ui5/model/models", "z2ui5/cc/Server
}, },
async init() { async init() {
z2ui5.oConfig = {}; if (typeof z2ui5 !== 'undefined') {
z2ui5.oConfig = {};
}
UIComponent.prototype.init.apply(this, arguments); UIComponent.prototype.init.apply(this, arguments);
if (typeof z2ui5 == 'undefined') { if (typeof z2ui5 == 'undefined') {
z2ui5 = {}; z2ui5 = {};
} }
if (z2ui5?.checkLocal == false) { if (z2ui5?.checkLocal == false) {
z2ui5 = {}; z2ui5 = {};
} }
if (typeof z2ui5.oConfig == 'undefined') {
z2ui5.oConfig = {};
}
z2ui5.oDeviceModel = Models.createDeviceModel(); z2ui5.oDeviceModel = Models.createDeviceModel();
this.setModel(z2ui5.oDeviceModel, "device"); this.setModel(z2ui5.oDeviceModel, "device");