Skip to content

Commit

Permalink
Merge pull request #1011 from calledude/fix-infractions
Browse files Browse the repository at this point in the history
Set Infraction Id instead of SubjectId when Id is supplied
  • Loading branch information
patrickklaeren authored Mar 26, 2024
2 parents 9c850cf + 38b0ddf commit 30814ac
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 30814ac

Please sign in to comment.