Fix subtitles display issue on episode page

pull/1386/head
LASER-Yi 4 years ago
parent e5fef50ff1
commit e462686c17

@ -112,14 +112,7 @@ const Table: FunctionComponent<Props> = ({ episodes, update }) => {
></SubtitleAction> ></SubtitleAction>
)); ));
const existing = episode.subtitles.filter( const subtitles = episode.subtitles.map((val, idx) => (
(val) =>
episode.missing_subtitles.findIndex(
(v) => v.code2 === val.code2
) === -1
);
const subtitles = existing.map((val, idx) => (
<SubtitleAction <SubtitleAction
key={BuildKey(idx, val.code2, "valid")} key={BuildKey(idx, val.code2, "valid")}
seriesid={seriesid} seriesid={seriesid}

Loading…
Cancel
Save