From e462686c178bb2c611b873b65b896ec99b6d414a Mon Sep 17 00:00:00 2001 From: LASER-Yi Date: Tue, 20 Apr 2021 01:36:09 +0800 Subject: [PATCH] Fix subtitles display issue on episode page --- frontend/src/Series/Episodes/table.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/frontend/src/Series/Episodes/table.tsx b/frontend/src/Series/Episodes/table.tsx index 2ae43aeab..b1dea33bf 100644 --- a/frontend/src/Series/Episodes/table.tsx +++ b/frontend/src/Series/Episodes/table.tsx @@ -112,14 +112,7 @@ const Table: FunctionComponent = ({ episodes, update }) => { > )); - const existing = episode.subtitles.filter( - (val) => - episode.missing_subtitles.findIndex( - (v) => v.code2 === val.code2 - ) === -1 - ); - - const subtitles = existing.map((val, idx) => ( + const subtitles = episode.subtitles.map((val, idx) => (