2
0
Fork 0

MOBILE-4201 login: Fix empty sites page when go back with openAddSite

main
Pau Ferrer Ocaña 2023-09-07 15:59:11 +02:00
parent ed900d9d1a
commit ca3d88b66b
1 changed files with 1 additions and 3 deletions

View File

@ -47,14 +47,12 @@ export class CoreLoginSitesPage implements OnInit {
async ngOnInit(): Promise<void> { async ngOnInit(): Promise<void> {
if (CoreNavigator.getRouteBooleanParam('openAddSite')) { if (CoreNavigator.getRouteBooleanParam('openAddSite')) {
this.add(); this.add();
return;
} }
this.accountsList = await CoreLoginHelper.getAccountsList(); this.accountsList = await CoreLoginHelper.getAccountsList();
this.loaded = true; this.loaded = true;
if (this.accountsList.count == 0) { if (this.accountsList.count == 0 && !CoreNavigator.getRouteBooleanParam('openAddSite')) {
this.add(); this.add();
} }
} }