Skip to content

Commit

Permalink
minor null fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Aug 9, 2024
1 parent 428ce5b commit 89ecc8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/Jordnaer/Pages/Groups/GroupDetails.razor
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
EndIcon="@Icons.Material.Filled.GroupAdd">
Anmod om Medlemskab
</MudButton>
@if (_currentUserIsAdmin)
@if (_currentUserIsAdmin && _group is not null)
{
<MudButton Href="@($"/groups/{_group.Id}/edit")"
<MudButton Href="@($"/groups/{_group?.Id}/edit")"
Class="mb-5"
Color="Color.Warning"
Variant="Variant.Text"
Expand Down

0 comments on commit 89ecc8b

Please sign in to comment.