diff --git a/src/scripts/OutSystems/OSUI/Utils/Menu.ts b/src/scripts/OutSystems/OSUI/Utils/Menu.ts index 1360c6e837..da841dd3cb 100644 --- a/src/scripts/OutSystems/OSUI/Utils/Menu.ts +++ b/src/scripts/OutSystems/OSUI/Utils/Menu.ts @@ -114,7 +114,7 @@ namespace OutSystems.OSUI.Utils.Menu { // OrientationChange handler const _onOrientationChangeCallbackHandler = (callback: OSFramework.OSUI.GlobalCallbacks.Generic): void => { - if (callback) { + if (typeof callback === 'function') { OSFramework.OSUI.Helper.ApplySetTimeOut(() => { _onOrientationChangeCallback(); }, 300);