From cc17e8144f1410c18935c5a7608d499c92c5499b Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Thu, 29 Apr 2021 23:18:07 -0400 Subject: [PATCH] Fixed episodes manual search button not disabled when no languages profile is selected. --- frontend/src/Series/Episodes/table.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/Series/Episodes/table.tsx b/frontend/src/Series/Episodes/table.tsx index b1dea33bf..10ad8fadf 100644 --- a/frontend/src/Series/Episodes/table.tsx +++ b/frontend/src/Series/Episodes/table.tsx @@ -9,6 +9,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import React, { FunctionComponent, useCallback, useMemo } from "react"; import { Badge, ButtonGroup } from "react-bootstrap"; import { Column, TableOptions, TableUpdater } from "react-table"; +import { useSerieBy } from "../../@redux/hooks"; import { ProvidersApi } from "../../apis"; import { ActionButton, @@ -131,10 +132,13 @@ const Table: FunctionComponent = ({ episodes, update }) => { Header: "Actions", accessor: "sonarrEpisodeId", Cell: ({ row, externalUpdate }) => { + const [serie] = useSerieBy(row.original.sonarrSeriesId); + return ( { externalUpdate && externalUpdate(row, "manual-search"); }}