Skip to content

Commit

Permalink
Fix possible crash navigating away from Dashboard (#3619)
Browse files Browse the repository at this point in the history
  • Loading branch information
krschau authored and EricJohnson327 committed Aug 19, 2024
1 parent 8925892 commit 25c1167
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private async Task OnLoadedAsync()
private async Task OnUnloadedAsync()
{
_log.Debug($"Unloading Dashboard, cancel any loading.");
_initWidgetsCancellationTokenSource.Cancel();
_initWidgetsCancellationTokenSource?.Cancel();
ViewModel.PinnedWidgets.CollectionChanged -= OnPinnedWidgetsCollectionChangedAsync;
Bindings.StopTracking();

Expand Down

0 comments on commit 25c1167

Please sign in to comment.