diff --git a/tns-core-modules/ui/frame/frame-common.ts b/tns-core-modules/ui/frame/frame-common.ts index 4740db8c9..3f01ea9bb 100644 --- a/tns-core-modules/ui/frame/frame-common.ts +++ b/tns-core-modules/ui/frame/frame-common.ts @@ -39,8 +39,8 @@ function buildEntryFromArgs(arg: any): definition.NavigationEntry { export function reloadPage(): void { let frame = topmost(); if (frame) { - if (frame.currentPage && (frame.currentPage)._modal) { - (frame.currentPage)._modal.closeModal(); + if (frame.currentPage && frame.currentPage.modal) { + frame.currentPage.modal.closeModal(); } let currentEntry = frame._currentEntry.entry;