From e8e4f9ef09e754fe5aa728363c8d7779fca177c0 Mon Sep 17 00:00:00 2001 From: calledude <22471295+calledude@users.noreply.github.com> Date: Tue, 26 Mar 2024 20:03:53 +0100 Subject: [PATCH] Set initial value for table filter if provided via query params --- Modix.Web/Components/Infractions.razor | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modix.Web/Components/Infractions.razor b/Modix.Web/Components/Infractions.razor index abd1102b2..c13a175e8 100644 --- a/Modix.Web/Components/Infractions.razor +++ b/Modix.Web/Components/Infractions.razor @@ -228,6 +228,8 @@ var auth = await AuthState; _canRescind = auth.User.HasClaim(ClaimTypes.Role, nameof(AuthorizationClaim.ModerationRescind)); _canDeleteInfractions = auth.User.HasClaim(ClaimTypes.Role, nameof(AuthorizationClaim.ModerationDeleteInfraction)); + + _tableFilter.Subject = Subject ?? Id; } private async Task ShowStateChanged(bool showState)