Skip to content

Commit

Permalink
Merge pull request #4145 from sbwalker/dev
Browse files Browse the repository at this point in the history
fix SiteRouter issue when running on .NET MAUI
sbwalker authored Apr 16, 2024
2 parents 3678db6 + 4f25b7b commit 4e333e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Oqtane.Client/UI/SiteRouter.razor
Original file line number Diff line number Diff line change
@@ -171,9 +171,9 @@
visitorId = PageState.VisitorId;
}

if (PageState.RenderMode == RenderModes.Interactive)
if (PageState != null && PageState.RenderMode == RenderModes.Interactive)
{
// process any sync events (for synchrozing the client application with the server)
// process any sync events (for synchronizing the client application with the server)
var sync = await SyncService.GetSyncEventsAsync(lastsyncdate);
lastsyncdate = sync.SyncDate;
if (sync.SyncEvents.Any())

0 comments on commit 4e333e2

Please sign in to comment.