From 38b0ddf9e34ed6cf8046091e78bedaf93f93cc22 Mon Sep 17 00:00:00 2001 From: calledude <22471295+calledude@users.noreply.github.com> Date: Tue, 26 Mar 2024 20:23:10 +0100 Subject: [PATCH] Set the infraction Id rather than the SubjectId when setting initial filters on infractions page --- Modix.Web/Components/Infractions.razor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modix.Web/Components/Infractions.razor b/Modix.Web/Components/Infractions.razor index c13a175e8..aad078c4e 100644 --- a/Modix.Web/Components/Infractions.razor +++ b/Modix.Web/Components/Infractions.razor @@ -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)