Bug: Loading Userprofile while not signed in interrupts Loading of the event

This commit is contained in:
2025-11-20 11:29:26 +01:00
parent 669cc79678
commit f86287783c

View File

@ -132,12 +132,14 @@
{
try
{
if(PageState.User != null) {
_profiles = await ProfileService.GetProfilesAsync(PageState.Site.SiteId);
var user = await UserService.GetUserAsync(PageState.User.UserId, PageState.Site.SiteId);
if (user != null)
{
_settings = user.Settings;
}
}
_id = Int32.Parse(PageState.QueryString["id"]);