diff options
author | LASER-Yi <[email protected]> | 2021-04-20 20:07:02 +0800 |
---|---|---|
committer | LASER-Yi <[email protected]> | 2021-04-20 20:07:02 +0800 |
commit | d6d9e93843964b0473fe01aa0411677690b40f8b (patch) | |
tree | 26e1c4519a20f00bbc1fa210ec5ef6b65d02d01b /frontend/src/Series/index.tsx | |
parent | 81a207b47fe450a21658537ee9ccccec65a7be91 (diff) | |
download | bazarr-d6d9e93843964b0473fe01aa0411677690b40f8b.tar.gz bazarr-d6d9e93843964b0473fe01aa0411677690b40f8b.zip |
Fix some potential issues when displaying languages
Diffstat (limited to 'frontend/src/Series/index.tsx')
-rw-r--r-- | frontend/src/Series/index.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
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<Props> = () => { accessor: "audio_language", Cell: (row) => { return row.value.map((v) => ( - <Badge variant="secondary" className="mr-2" key={v.code2}> + <Badge + variant="secondary" + className="mr-2" + key={BuildKey(v.code2, v.forced, v.hi)} + > {v.name} </Badge> )); |