We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e106495 + 9feba2c commit 3b697b7Copy full SHA for 3b697b7
1 file changed
src/components/shared/Stats.tsx
@@ -10,6 +10,7 @@ import {
10
removeTextFilter,
11
} from "../../slices/tableFilterSlice";
12
import { loadEventsIntoTable } from "../../thunks/tableThunks";
13
+import { setOffset, setPageActive } from "../../slices/tableSlice";
14
import { useAppDispatch, useAppSelector } from "../../store";
15
import { fetchEvents } from "../../slices/eventSlice";
16
import { ParseKeys } from "i18next";
@@ -40,6 +41,9 @@ const Stats = () => {
40
41
const filter = filterMap.find(({ name }) => name === f.name);
42
filterValue = f.value;
43
if (filter) {
44
+ // go to first page without reloading all events
45
+ dispatch(setOffset(0));
46
+ dispatch(setPageActive(0));
47
dispatch(editFilterValue({ filterName: filter.name, value: filterValue, resource: "events" }));
48
}
49
});
0 commit comments