From d6d9e93843964b0473fe01aa0411677690b40f8b Mon Sep 17 00:00:00 2001 From: LASER-Yi Date: Tue, 20 Apr 2021 20:07:02 +0800 Subject: Fix some potential issues when displaying languages --- frontend/src/Movies/index.tsx | 13 +++++++++++-- frontend/src/Series/index.tsx | 7 ++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/frontend/src/Movies/index.tsx b/frontend/src/Movies/index.tsx index e3b79fb01..414def495 100644 --- a/frontend/src/Movies/index.tsx +++ b/frontend/src/Movies/index.tsx @@ -16,6 +16,7 @@ import { useReduxAction } from "../@redux/hooks/base"; import { MoviesApi } from "../apis"; import { ActionBadge, TextPopover } from "../components"; import BaseItemView from "../generic/BaseItemView"; +import { BuildKey } from "../utilites"; interface Props {} @@ -73,7 +74,11 @@ const MovieView: FunctionComponent = () => { accessor: "audio_language", Cell: (row) => { return row.value.map((v) => ( - + {v.name} )); @@ -99,7 +104,11 @@ const MovieView: FunctionComponent = () => { Cell: (row) => { const missing = row.value; return missing.map((v) => ( - + {v.code2} )); diff --git a/frontend/src/Series/index.tsx b/frontend/src/Series/index.tsx index ca13cdfe3..a01b8c06a 100644 --- a/frontend/src/Series/index.tsx +++ b/frontend/src/Series/index.tsx @@ -14,6 +14,7 @@ import { useReduxAction } from "../@redux/hooks/base"; import { SeriesApi } from "../apis"; import { ActionBadge } from "../components"; import BaseItemView from "../generic/BaseItemView"; +import { BuildKey } from "../utilites"; interface Props {} @@ -59,7 +60,11 @@ const SeriesView: FunctionComponent = () => { accessor: "audio_language", Cell: (row) => { return row.value.map((v) => ( - + {v.name} )); -- cgit v1.2.3