Fix errore apertura fermate a loop

This commit is contained in:
Samuele Locatelli
2023-12-14 17:20:07 +01:00
parent a939079cee
commit 375609126d
+4 -4
View File
@@ -211,7 +211,7 @@ namespace MP_TAB_SERV.Pages
rdm_nEvCheck = SMServ.GetConfInt("rdm_nEvCheck");
rdm_ChkOnly = SMServ.GetConfBool("rdm_ChkOnly");
// leggo gli altri dati
await ReloadData();
await ReloadData();
}
protected async Task RefreshData(List<MappaStatoExpl> newList)
@@ -229,7 +229,6 @@ namespace MP_TAB_SERV.Pages
await ReloadData();
}
}
await InvokeAsync(StateHasChanged);
}
protected void SetDate(DateTime newDate)
@@ -274,9 +273,10 @@ namespace MP_TAB_SERV.Pages
events2show = eventsAll.Where(x => x.EventoTablet).OrderBy(x => x.label).ToList();
}
}
catch
catch(Exception exc)
{
NavMan.NavigateTo("/", true);
Log.Error($"ProdStop: Eccezione in reloadData {Environment.NewLine}{exc}");
await MServ.LastOpenedPageSet("/");
}
}
}