Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix series filter not being applied to events #1111

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Prev Previous commit
Fix series filter not being applied to events
Includes #980, supersedes  #1083.

Should achieve the same thing as #1083, but without
reverting to older dependency versions. Meaning
clicking on a series name in the series table
should bring up the events table with the series filter set.
Including #980 as it helps in achieving this.
  • Loading branch information
Arnei committed Feb 17, 2025
commit caafa11086e27057594359c7c54dfb33c7ec7659
4 changes: 0 additions & 4 deletions src/components/events/partials/SeriesTitleCell.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react";
import { useTranslation } from "react-i18next";
import { loadEventsIntoTable } from "../../../thunks/tableThunks";
import { setSpecificEventFilter } from "../../../slices/tableFilterSlice";
import { Link } from "react-router";
import { useAppDispatch } from "../../../store";
Expand All @@ -19,9 +18,6 @@ const SeriesTitleCell = ({
const dispatch = useAppDispatch();

const redirectToEvents = async (seriesId: string) => {
// redirect to tables
await dispatch(loadEventsIntoTable());

// set the series filter value of events to series title
await dispatch(setSpecificEventFilter({filter: "series", filterValue: seriesId}));
};
Expand Down
Loading