Merge pull request #4145 from sbwalker/dev

fix SiteRouter issue when running on .NET MAUI
This commit is contained in:
Shaun Walker 2024-04-16 08:03:16 -04:00 committed by GitHub
commit 4e333e2d75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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())