Skip to content

Commit

Permalink
Set the infraction Id rather than the SubjectId when setting initial …
Browse files Browse the repository at this point in the history
…filters on infractions page
  • Loading branch information
calledude committed Mar 26, 2024
1 parent 9c850cf commit 38b0ddf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modix.Web/Components/Infractions.razor
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@
_canRescind = auth.User.HasClaim(ClaimTypes.Role, nameof(AuthorizationClaim.ModerationRescind));
_canDeleteInfractions = auth.User.HasClaim(ClaimTypes.Role, nameof(AuthorizationClaim.ModerationDeleteInfraction));

_tableFilter.Subject = Subject ?? Id;
_tableFilter.Subject = Subject;
_tableFilter.IdString = Id;
}

private async Task ShowStateChanged(bool showState)
Expand Down

0 comments on commit 38b0ddf

Please sign in to comment.