From 2044231c48aaf5c2651e71a03dcd4229d0c03f60 Mon Sep 17 00:00:00 2001 From: axelmohnen Date: Mon, 13 Nov 2023 09:01:45 +0100 Subject: [PATCH] Bugfix onInit() --- src/zabap2ui5.wapa.controller_-view1.controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zabap2ui5.wapa.controller_-view1.controller.js b/src/zabap2ui5.wapa.controller_-view1.controller.js index fad8485..baaba25 100644 --- a/src/zabap2ui5.wapa.controller_-view1.controller.js +++ b/src/zabap2ui5.wapa.controller_-view1.controller.js @@ -13,12 +13,12 @@ sap.ui.define([ //Set app title dynamically try{ - if ( sap.ushell.ui5service !== undefinded ){ + if ( sap.ushell.ui5service){ this.getOwnerComponent().getService("ShellUIService").then( // promise is returned function (oService) { try { var sTitle = that.getOwnerComponent().getComponentData().startupParameters.app_title[0]; - sap.z2ui5.startupParameters = this.getOwnerComponent().getComponentData().startupParameters; + sap.z2ui5.startupParameters = that.getOwnerComponent().getComponentData().startupParameters; oService.setTitle(sTitle); } catch (e) {} } @@ -84,4 +84,4 @@ sap.ui.define([ } }, }); - }); \ No newline at end of file + });