From 375609126db572713fc60b33a2b6b7195afc7dde Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 14 Dec 2023 17:20:07 +0100 Subject: [PATCH] Fix errore apertura fermate a loop --- MP-TAB-SERV/Pages/ProdStop.razor.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MP-TAB-SERV/Pages/ProdStop.razor.cs b/MP-TAB-SERV/Pages/ProdStop.razor.cs index dc3019d3..66c8a6bb 100644 --- a/MP-TAB-SERV/Pages/ProdStop.razor.cs +++ b/MP-TAB-SERV/Pages/ProdStop.razor.cs @@ -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 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("/"); } } }