FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

refactor: guard livesync for cases the app is not yet started (#6276) · NativeScript/NativeScript@7110753 · GitHub

Commit 7110753

Browse files
Alexander Vakrilov
authored
refactor: guard livesync for cases the app is not yet started (#6276)
1 parent 2625683 commit 7110753

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tns-core-modules/ui/frame/frame-common.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,10 @@ export class FrameBase extends CustomLayoutView implements FrameDefinition {
531531
public _onLivesync(): boolean {
532532
super._onLivesync();
533533

534+
if (!this._currentEntry || !this._currentEntry.entry) {
535+
return false;
536+
}
537+
534538
const currentEntry = this._currentEntry.entry;
535539
const newEntry: NavigationEntry = {
536540
animated: false,

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL