diff --git a/public/resources/en/events.json b/public/resources/en/events.json
index 21e75ba095..cf28fd2b98 100644
--- a/public/resources/en/events.json
+++ b/public/resources/en/events.json
@@ -31,5 +31,6 @@
"attribute": "Attribute",
"value": "Value",
"representation": "Representation",
- "noUserDetails": "No user details"
+ "noUserDetails": "No user details",
+ "resetBtn": "Reset"
}
diff --git a/src/events/AdminEvents.tsx b/src/events/AdminEvents.tsx
index da9be84e86..717c99eac3 100644
--- a/src/events/AdminEvents.tsx
+++ b/src/events/AdminEvents.tsx
@@ -147,6 +147,11 @@ export const AdminEvents = () => {
commitFilters();
}
+ function resetSearch() {
+ reset();
+ commitFilters();
+ }
+
function removeFilter(key: keyof AdminEventSearchForm) {
const formValues: AdminEventSearchForm = { ...getValues() };
delete formValues[key];
@@ -437,7 +442,6 @@ export const AdminEvents = () => {
+
diff --git a/src/events/EventsSection.tsx b/src/events/EventsSection.tsx
index 8193f0db28..962d2b46ca 100644
--- a/src/events/EventsSection.tsx
+++ b/src/events/EventsSection.tsx
@@ -138,6 +138,11 @@ export default function EventsSection() {
commitFilters();
}
+ function resetSearch() {
+ reset();
+ commitFilters();
+ }
+
function removeFilter(key: keyof UserEventSearchForm) {
const formValues: UserEventSearchForm = { ...getValues() };
delete formValues[key];
@@ -342,7 +347,6 @@ export default function EventsSection() {
+