Mise à jour de 'Sources/HeartTrack/Pages/Tickets.razor.cs'

CI_tests
Antoine PINAGOT 1 year ago
parent bb7eb27e9d
commit 207ac95462

@ -45,7 +45,7 @@ namespace HeartTrack.Pages
if (currentData == null)
{
// this code add in the local storage the fake data (we load the data sync for initialize the data before load the OnReadData method)
var originalData = Http.GetFromJsonAsync<Ticket[]>($"{NavigationManager.BaseUri}data/fake-tickets.json").Result;
var originalData = Http.GetFromJsonAsync<Ticket[]>($"{NavigationManager.BaseUri}fake-tickets.json").Result;
await LocalStorage.SetItemAsync("data", originalData);
}

Loading…
Cancel
Save