|
|
|
@ -38,7 +38,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<Report[]>($"{NavigationManager.BaseUri}fake-data.json").Result;
|
|
|
|
|
var originalData = Http.GetFromJsonAsync<Report[]>($"{NavigationManager.BaseUri}fake-reports.json").Result;
|
|
|
|
|
await LocalStorage.SetItemAsync("data", originalData);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|