Skip to content

Commit

Permalink
fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Jan 6, 2025
1 parent ab67a36 commit 4d8fdd5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/web/Jordnaer/Features/Profile/EditChildProfileTabs.razor
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@

private void RemoveChild(MudTabPanel obj)
{
var tab = Parent.ChildProfiles.Find(e => e.Id == (Guid) obj.ID);
var tab = Parent.ChildProfiles.Find(e => e.Id == (Guid?) obj.ID);
if (tab is null)
{
return;
}
Parent.ChildProfiles.Remove(tab);

var editChildProfileComponent = _editChildProfileComponents.Find(e => e.ChildProfile.Id == (Guid) obj.ID);
var editChildProfileComponent = _editChildProfileComponents.Find(e => e.ChildProfile.Id == (Guid?) obj.ID);
if (editChildProfileComponent is null)
{
return;
Expand Down
3 changes: 1 addition & 2 deletions src/web/Jordnaer/Pages/Profile/MyProfile.razor
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
@inject IProfileCache ProfileCache
@inject IProfileService ProfileService
@inject ISnackbar Snackbar
@inject IBlazrRenderStateService RenderStateService

@attribute [Authorize]

Expand Down Expand Up @@ -135,7 +134,7 @@

protected override async Task OnInitializedAsync()
{
if (RenderStateService.IsPreRender)
if (!RendererInfo.IsInteractive)
{
return;
}
Expand Down
3 changes: 0 additions & 3 deletions src/web/Jordnaer/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Azure.Storage.Blobs;
using Blazored.LocalStorage;
using Blazored.SessionStorage;
using Blazr.RenderState.Server;
using Jordnaer.Components.Account;
using Jordnaer.Extensions;
using Jordnaer.Features.Category;
Expand Down Expand Up @@ -74,8 +73,6 @@
builder.AddGroupServices();
builder.AddGroupSearchServices();

builder.AddBlazrRenderStateServerServices();

builder.AddCategoryServices();
builder.AddProfileServices();
builder.AddChatServices();
Expand Down
1 change: 0 additions & 1 deletion src/web/Jordnaer/_Imports.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@using Blazored.LocalStorage
@using Blazored.SessionStorage
@using Blazr.RenderState
@using Jordnaer
@using Jordnaer.Components
@using Jordnaer.Components.Account.Pages
Expand Down

0 comments on commit 4d8fdd5

Please sign in to comment.