From c1fe1813b247202aa6c2d91835c2de49918d2404 Mon Sep 17 00:00:00 2001 From: Liam Morrow Date: Tue, 29 Oct 2024 10:36:30 +1100 Subject: [PATCH] Ensure we always initialize stored sessions --- LiftLog.Ui/Services/ProgressRepository.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/LiftLog.Ui/Services/ProgressRepository.cs b/LiftLog.Ui/Services/ProgressRepository.cs index d816c150..574e0f3d 100644 --- a/LiftLog.Ui/Services/ProgressRepository.cs +++ b/LiftLog.Ui/Services/ProgressRepository.cs @@ -104,6 +104,7 @@ await keyValueStore.GetItemAsync(StorageKey) ?? "null", }; var deserialiseTime = sw.ElapsedMilliseconds; sw.Restart(); + _storedSessions = ImmutableDictionary.Empty; if (storedData is not null) { _storedSessions = storedData.CompletedSessions;