Skip to content

Commit

Permalink
Update JsonNavigationService.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost1372 committed Dec 26, 2024
1 parent a9f70d9 commit 43dc6ad
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,11 @@ private void OnNavigated(object sender, NavigationEventArgs e)
return;
}

if (e.Parameter is BaseDataInfo dataInfo)
if (e.Parameter is BaseDataInfo dataInfo && dataInfo != null)
{
if (!string.IsNullOrEmpty(dataInfo.UniqueId))
if (e.NavigationMode == NavigationMode.Back || !currentTag.Equals(dataInfo.UniqueId))
{
if (e.NavigationMode == NavigationMode.Back || !currentTag.Equals(dataInfo.UniqueId))
{
EnsureNavigationSelection(dataInfo.UniqueId);
}
EnsureNavigationSelection(dataInfo.UniqueId);
}
}
}
Expand Down

0 comments on commit 43dc6ad

Please sign in to comment.