diff --git a/app/actions/ModActionPanel/QuickAction.tsx b/app/actions/ModActionPanel/QuickAction.tsx index bb520e23..ee8ff900 100644 --- a/app/actions/ModActionPanel/QuickAction.tsx +++ b/app/actions/ModActionPanel/QuickAction.tsx @@ -117,7 +117,9 @@ export function ModActionPanelQuick( title="No reports" className="h-10 w-10 text-green-300 align-text-bottom mx-auto mb-4" /> -

No reports found

+

+ No reports found +

)} @@ -359,7 +361,7 @@ function Form( refetchSubjectStatus() refetchSubject() - queryClient.invalidateQueries(['modEventList', { props: { subject } }]) + queryClient.invalidateQueries(['modEventList']) // After successful submission, reset the form state to clear inputs for previous submission ev.target.reset() diff --git a/components/reports/ReportPanel.tsx b/components/reports/ReportPanel.tsx index 61a8b7ac..a8dcb786 100644 --- a/components/reports/ReportPanel.tsx +++ b/components/reports/ReportPanel.tsx @@ -65,10 +65,7 @@ function Form(props: { reason: formData.get('reason')!.toString() || undefined, }) onCancel() // Close - queryClient.invalidateQueries([ - 'modEventList', - { props: { subject } }, - ]) + queryClient.invalidateQueries(['modEventList']) } finally { setSubmitting(false) }