Skip to content

Commit

Permalink
Fix series filter not being applied to events
Browse files Browse the repository at this point in the history
Includes opencast#980, supersedes  opencast#1083.

Should achieve the same thing as opencast#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 opencast#980 as it helps in achieving this.
  • Loading branch information
Arnei committed Feb 17, 2025
1 parent ad2b6b3 commit caafa11
Showing 1 changed file with 0 additions and 4 deletions.
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

0 comments on commit caafa11

Please sign in to comment.